mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Add import finished and video published notifs
This commit is contained in:
parent
6e7e63b83f
commit
dc13348070
23 changed files with 815 additions and 251 deletions
|
@ -13,6 +13,8 @@ CREATE TABLE IF NOT EXISTS "userNotificationSetting" ("id" SERIAL,
|
|||
"newCommentOnMyVideo" INTEGER NOT NULL DEFAULT NULL,
|
||||
"videoAbuseAsModerator" INTEGER NOT NULL DEFAULT NULL,
|
||||
"blacklistOnMyVideo" INTEGER NOT NULL DEFAULT NULL,
|
||||
"myVideoPublished" INTEGER NOT NULL DEFAULT NULL,
|
||||
"myVideoImportFinished" INTEGER NOT NULL DEFAULT NULL,
|
||||
"userId" INTEGER REFERENCES "user" ("id") ON DELETE CASCADE ON UPDATE CASCADE,
|
||||
"createdAt" TIMESTAMP WITH TIME ZONE NOT NULL,
|
||||
"updatedAt" TIMESTAMP WITH TIME ZONE NOT NULL,
|
||||
|
@ -24,8 +26,8 @@ PRIMARY KEY ("id"))
|
|||
{
|
||||
const query = 'INSERT INTO "userNotificationSetting" ' +
|
||||
'("newVideoFromSubscription", "newCommentOnMyVideo", "videoAbuseAsModerator", "blacklistOnMyVideo", ' +
|
||||
'"userId", "createdAt", "updatedAt") ' +
|
||||
'(SELECT 2, 2, 4, 4, id, NOW(), NOW() FROM "user")'
|
||||
'"myVideoPublished", "myVideoImportFinished", "userId", "createdAt", "updatedAt") ' +
|
||||
'(SELECT 2, 2, 4, 4, 2, 2, id, NOW(), NOW() FROM "user")'
|
||||
|
||||
await utils.sequelize.query(query)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue