diff options
Diffstat (limited to 'server/models/video/video-comment.ts')
-rw-r--r-- | server/models/video/video-comment.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/models/video/video-comment.ts b/server/models/video/video-comment.ts index e733138c1..93d84c6fc 100644 --- a/server/models/video/video-comment.ts +++ b/server/models/video/video-comment.ts | |||
@@ -1,5 +1,4 @@ | |||
1 | import * as Sequelize from 'sequelize' | 1 | import * as Sequelize from 'sequelize' |
2 | import { Op } from 'sequelize' | ||
3 | import { | 2 | import { |
4 | AllowNull, | 3 | AllowNull, |
5 | BeforeDestroy, | 4 | BeforeDestroy, |
@@ -458,7 +457,7 @@ export class VideoCommentModel extends Model<VideoCommentModel> { | |||
458 | const query = { | 457 | const query = { |
459 | where: { | 458 | where: { |
460 | updatedAt: { | 459 | updatedAt: { |
461 | [Op.lt]: beforeUpdatedAt | 460 | [Sequelize.Op.lt]: beforeUpdatedAt |
462 | }, | 461 | }, |
463 | videoId | 462 | videoId |
464 | } | 463 | } |