style: format code with prettier
Local Build and Deploy / deploy (push) Successful in 49s

This commit is contained in:
openhands committed 2026-07-12 21:07:34 +02:00
1 parent e85e4d74ea
commit 2e4ed76121
378 files changed
+22404 -20686

No files matched your search

+9 -9
View File
@@ -1,13 +1,13 @@
import { unstable_cache } from 'next/cache'
import { prisma } from '@/lib/prisma'
import { unstable_cache } from "next/cache";
import { prisma } from "@/lib/prisma";
/**
* Returns the set of user IDs that the given staff member has marked as
* "watch". Cached 60s + tag-invalidated by toggleUserWatch.
*/
export async function getWatchedUserIds(staffId: number): Promise<Set<number>> {
const ids = await getCachedWatchedIds(staffId)
return new Set(ids)
const ids = await getCachedWatchedIds(staffId);
return new Set(ids);
}
const getCachedWatchedIds = unstable_cache(
@@ -15,9 +15,9 @@ const getCachedWatchedIds = unstable_cache(
const rows = await prisma.userWatch.findMany({
where: { staffId },
select: { targetUserId: true },
})
return rows.map((r) => r.targetUserId)
});
return rows.map((r) => r.targetUserId);
},
['user-watch-list'],
{ revalidate: 60, tags: ['user-watch'] },
)
["user-watch-list"],
{ revalidate: 60, tags: ["user-watch"] },
);