aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video-share.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/video/video-share.ts')
-rw-r--r--server/models/video/video-share.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/models/video/video-share.ts b/server/models/video/video-share.ts
index fb52b35d9..399081564 100644
--- a/server/models/video/video-share.ts
+++ b/server/models/video/video-share.ts
@@ -1,5 +1,4 @@
1import * as Sequelize from 'sequelize' 1import * as Sequelize from 'sequelize'
2import { Op } from 'sequelize'
3import * as Bluebird from 'bluebird' 2import * as Bluebird from 'bluebird'
4import { AllowNull, BelongsTo, Column, CreatedAt, DataType, ForeignKey, Is, Model, Scopes, Table, UpdatedAt } from 'sequelize-typescript' 3import { AllowNull, BelongsTo, Column, CreatedAt, DataType, ForeignKey, Is, Model, Scopes, Table, UpdatedAt } from 'sequelize-typescript'
5import { isActivityPubUrlValid } from '../../helpers/custom-validators/activitypub/misc' 4import { isActivityPubUrlValid } from '../../helpers/custom-validators/activitypub/misc'
@@ -206,7 +205,7 @@ export class VideoShareModel extends Model<VideoShareModel> {
206 const query = { 205 const query = {
207 where: { 206 where: {
208 updatedAt: { 207 updatedAt: {
209 [Op.lt]: beforeUpdatedAt 208 [Sequelize.Op.lt]: beforeUpdatedAt
210 }, 209 },
211 videoId 210 videoId
212 } 211 }