diff options
Diffstat (limited to 'server/models')
-rw-r--r-- | server/models/video/video-playlist.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/server/models/video/video-playlist.ts b/server/models/video/video-playlist.ts index 98cea1b64..1a05f8d42 100644 --- a/server/models/video/video-playlist.ts +++ b/server/models/video/video-playlist.ts | |||
@@ -18,6 +18,7 @@ import { | |||
18 | UpdatedAt | 18 | UpdatedAt |
19 | } from 'sequelize-typescript' | 19 | } from 'sequelize-typescript' |
20 | import { v4 as uuidv4 } from 'uuid' | 20 | import { v4 as uuidv4 } from 'uuid' |
21 | import { setAsUpdated } from '@server/helpers/database-utils' | ||
21 | import { MAccountId, MChannelId } from '@server/types/models' | 22 | import { MAccountId, MChannelId } from '@server/types/models' |
22 | import { AttributesOnly } from '@shared/core-utils' | 23 | import { AttributesOnly } from '@shared/core-utils' |
23 | import { ActivityIconObject } from '../../../shared/models/activitypub/objects' | 24 | import { ActivityIconObject } from '../../../shared/models/activitypub/objects' |
@@ -531,9 +532,7 @@ export class VideoPlaylistModel extends Model<Partial<AttributesOnly<VideoPlayli | |||
531 | } | 532 | } |
532 | 533 | ||
533 | setAsRefreshed () { | 534 | setAsRefreshed () { |
534 | this.changed('updatedAt', true) | 535 | return setAsUpdated('videoPlaylist', this.id) |
535 | |||
536 | return this.save() | ||
537 | } | 536 | } |
538 | 537 | ||
539 | isOwned () { | 538 | isOwned () { |