aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/sql/abstract-videos-query-builder.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/video/sql/abstract-videos-query-builder.ts')
-rw-r--r--server/models/video/sql/abstract-videos-query-builder.ts15
1 files changed, 0 insertions, 15 deletions
diff --git a/server/models/video/sql/abstract-videos-query-builder.ts b/server/models/video/sql/abstract-videos-query-builder.ts
deleted file mode 100644
index 597a02af7..000000000
--- a/server/models/video/sql/abstract-videos-query-builder.ts
+++ /dev/null
@@ -1,15 +0,0 @@
1import { logger } from '@server/helpers/logger'
2import { Sequelize, QueryTypes } from 'sequelize'
3
4export class AbstractVideosQueryBuilder {
5 protected sequelize: Sequelize
6
7 protected query: string
8 protected replacements: any = {}
9
10 protected runQuery (nest?: boolean) {
11 logger.info('Running video query.', { query: this.query, replacements: this.replacements })
12
13 return this.sequelize.query<any>(this.query, { replacements: this.replacements, type: QueryTypes.SELECT, nest })
14 }
15}