navbar and notifications
This commit is contained in:
1 parent
a97560c1c7
commit
5b0c7c05ca
11 files changed
+65
-46
No files matched your search
@@ -98,6 +98,12 @@ export default function createPg(log: Log, prisma: PrismaClient) {
|
||||
});
|
||||
}
|
||||
|
||||
async function wantFindId(id: UUID) {
|
||||
return prisma.want.findFirstOrThrow({
|
||||
where: { id },
|
||||
});
|
||||
}
|
||||
|
||||
async function wantList(user: User) {
|
||||
return prisma.want.findMany({
|
||||
where: { userId: user.id },
|
||||
|
||||
Reference in new issue
Block a user