mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Restore videos list components
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import * as Sequelize from 'sequelize'
|
||||
import { Op } from 'sequelize'
|
||||
import {
|
||||
AllowNull,
|
||||
BeforeDestroy,
|
||||
@@ -458,7 +457,7 @@ export class VideoCommentModel extends Model<VideoCommentModel> {
|
||||
const query = {
|
||||
where: {
|
||||
updatedAt: {
|
||||
[Op.lt]: beforeUpdatedAt
|
||||
[Sequelize.Op.lt]: beforeUpdatedAt
|
||||
},
|
||||
videoId
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import * as Sequelize from 'sequelize'
|
||||
import { Op } from 'sequelize'
|
||||
import * as Bluebird from 'bluebird'
|
||||
import { AllowNull, BelongsTo, Column, CreatedAt, DataType, ForeignKey, Is, Model, Scopes, Table, UpdatedAt } from 'sequelize-typescript'
|
||||
import { isActivityPubUrlValid } from '../../helpers/custom-validators/activitypub/misc'
|
||||
@@ -206,7 +205,7 @@ export class VideoShareModel extends Model<VideoShareModel> {
|
||||
const query = {
|
||||
where: {
|
||||
updatedAt: {
|
||||
[Op.lt]: beforeUpdatedAt
|
||||
[Sequelize.Op.lt]: beforeUpdatedAt
|
||||
},
|
||||
videoId
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user