mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 13:01:00 +00:00
style(documents): format document-settings read helper
This commit is contained in:
1 parent
4f145eadd7
commit
f2263361b6
1 file changed
+3
-1
@@ -19,7 +19,9 @@ import { prisma } from "@/lib/db";
|
||||
* A missing row (deleted account raced against a job) resolves to `false` —
|
||||
* fail-closed to the local-first posture, never to external egress.
|
||||
*/
|
||||
export async function documentAutoReadEnabled(userId: string): Promise<boolean> {
|
||||
export async function documentAutoReadEnabled(
|
||||
userId: string,
|
||||
): Promise<boolean> {
|
||||
const row = await prisma.user.findUnique({
|
||||
where: { id: userId },
|
||||
select: { documentsAutoAiRead: true },
|
||||
|
||||
Reference in new issue
Block a user