export class VideosModelListQueryBuilder extends AbstractVideosModelQueryBuilder {
protected attributes: { [key: string]: string }
- protected joins: string[] = []
private innerQuery: string
private innerSort: string
'"video".*': ''
}
- this.joins = [ 'INNER JOIN "video" ON "tmp"."id" = "video"."id"' ]
+ this.addJoin('INNER JOIN "video" ON "tmp"."id" = "video"."id"')
this.includeChannels()
this.includeAccounts()
const select = this.buildSelect()
- this.query = `${select} FROM (${this.innerQuery}) AS "tmp" ${this.joins.join(' ')} ${this.innerSort}`
+ this.query = `${select} FROM (${this.innerQuery}) AS "tmp" ${this.joins} ${this.innerSort}`
}
}