diff options
author | Chocobozzz <me@florianbigard.com> | 2022-03-22 16:58:49 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-03-22 17:24:32 +0100 |
commit | 92e66e04f7f51d37b465cff442ce47f6d6d7cadd (patch) | |
tree | 4475c5c601c0f6673ca56afba5b7f70a4fae4ec3 /server/lib/notifier/shared | |
parent | 1808a1f8e4b7b102823492a2007a46929aebf189 (diff) | |
download | PeerTube-92e66e04f7f51d37b465cff442ce47f6d6d7cadd.tar.gz PeerTube-92e66e04f7f51d37b465cff442ce47f6d6d7cadd.tar.zst PeerTube-92e66e04f7f51d37b465cff442ce47f6d6d7cadd.zip |
Rename studio to editor
Diffstat (limited to 'server/lib/notifier/shared')
-rw-r--r-- | server/lib/notifier/shared/video-publication/index.ts | 2 | ||||
-rw-r--r-- | server/lib/notifier/shared/video-publication/studio-edition-finished-for-owner.ts (renamed from server/lib/notifier/shared/video-publication/edition-finished-for-owner.ts) | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/server/lib/notifier/shared/video-publication/index.ts b/server/lib/notifier/shared/video-publication/index.ts index 57f3443b9..5e92cb011 100644 --- a/server/lib/notifier/shared/video-publication/index.ts +++ b/server/lib/notifier/shared/video-publication/index.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | export * from './new-video-for-subscribers' | 1 | export * from './new-video-for-subscribers' |
2 | export * from './edition-finished-for-owner' | ||
3 | export * from './import-finished-for-owner' | 2 | export * from './import-finished-for-owner' |
4 | export * from './owned-publication-after-auto-unblacklist' | 3 | export * from './owned-publication-after-auto-unblacklist' |
5 | export * from './owned-publication-after-schedule-update' | 4 | export * from './owned-publication-after-schedule-update' |
6 | export * from './owned-publication-after-transcoding' | 5 | export * from './owned-publication-after-transcoding' |
6 | export * from './studio-edition-finished-for-owner' | ||
diff --git a/server/lib/notifier/shared/video-publication/edition-finished-for-owner.ts b/server/lib/notifier/shared/video-publication/studio-edition-finished-for-owner.ts index dec91f574..ee3027245 100644 --- a/server/lib/notifier/shared/video-publication/edition-finished-for-owner.ts +++ b/server/lib/notifier/shared/video-publication/studio-edition-finished-for-owner.ts | |||
@@ -6,7 +6,7 @@ import { MUserDefault, MUserWithNotificationSetting, MVideoFullLight, UserNotifi | |||
6 | import { UserNotificationType } from '@shared/models' | 6 | import { UserNotificationType } from '@shared/models' |
7 | import { AbstractNotification } from '../common/abstract-notification' | 7 | import { AbstractNotification } from '../common/abstract-notification' |
8 | 8 | ||
9 | export class EditionFinishedForOwner extends AbstractNotification <MVideoFullLight> { | 9 | export class StudioEditionFinishedForOwner extends AbstractNotification <MVideoFullLight> { |
10 | private user: MUserDefault | 10 | private user: MUserDefault |
11 | 11 | ||
12 | async prepare () { | 12 | async prepare () { |
@@ -14,11 +14,11 @@ export class EditionFinishedForOwner extends AbstractNotification <MVideoFullLig | |||
14 | } | 14 | } |
15 | 15 | ||
16 | log () { | 16 | log () { |
17 | logger.info('Notifying user %s its video edition %s is finished.', this.user.username, this.payload.url) | 17 | logger.info('Notifying user %s its video studio edition %s is finished.', this.user.username, this.payload.url) |
18 | } | 18 | } |
19 | 19 | ||
20 | getSetting (user: MUserWithNotificationSetting) { | 20 | getSetting (user: MUserWithNotificationSetting) { |
21 | return user.NotificationSetting.myVideoEditionFinished | 21 | return user.NotificationSetting.myVideoStudioEditionFinished |
22 | } | 22 | } |
23 | 23 | ||
24 | getTargetUsers () { | 24 | getTargetUsers () { |
@@ -29,7 +29,7 @@ export class EditionFinishedForOwner extends AbstractNotification <MVideoFullLig | |||
29 | 29 | ||
30 | async createNotification (user: MUserWithNotificationSetting) { | 30 | async createNotification (user: MUserWithNotificationSetting) { |
31 | const notification = await UserNotificationModel.create<UserNotificationModelForApi>({ | 31 | const notification = await UserNotificationModel.create<UserNotificationModelForApi>({ |
32 | type: UserNotificationType.MY_VIDEO_EDITION_FINISHED, | 32 | type: UserNotificationType.MY_VIDEO_STUDIO_EDITION_FINISHED, |
33 | userId: user.id, | 33 | userId: user.id, |
34 | videoId: this.payload.id | 34 | videoId: this.payload.id |
35 | }) | 35 | }) |