-import * as Bluebird from 'bluebird'
import { invert } from 'lodash'
import { literal, Op, QueryTypes } from 'sequelize'
import {
}
]
})
-export class AbuseModel extends Model<AbuseModel> {
+export class AbuseModel extends Model {
@AllowNull(false)
@Default(null)
})
VideoAbuse: VideoAbuseModel
- static loadByIdWithReporter (id: number): Bluebird<MAbuseReporter> {
+ static loadByIdWithReporter (id: number): Promise<MAbuseReporter> {
const query = {
where: {
id
return AbuseModel.findOne(query)
}
- static loadFull (id: number): Bluebird<MAbuseFull> {
+ static loadFull (id: number): Promise<MAbuseFull> {
const query = {
where: {
id