mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-01-31 15:37:09 +01:00
fix: task api and other small issues
This commit is contained in:
@@ -57,8 +57,15 @@ class NotificationSystem {
|
||||
}
|
||||
|
||||
async push(userId: string, notificationCreateArgs: NotificationCreateArgs) {
|
||||
const notification = await prisma.notification.create({
|
||||
data: {
|
||||
const notification = await prisma.notification.upsert({
|
||||
where: {
|
||||
nonce: notificationCreateArgs.nonce!!
|
||||
},
|
||||
update: {
|
||||
userId: userId,
|
||||
...notificationCreateArgs,
|
||||
},
|
||||
create: {
|
||||
userId: userId,
|
||||
...notificationCreateArgs,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user