style(documents): format document-settings read helper

This commit is contained in:
Marc-André Bombeck committed 2026-07-09 11:02:20 +02:00
1 parent 4f145eadd7
commit f2263361b6
1 file changed
+3 -1
+3 -1
View File
@@ -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 },