From bae616273d455d225d131eb17c56db6c20a0b6b3 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 5 May 2022 10:29:35 +0200 Subject: Convert followers/following in raw SQL queries Prevent weird bug in SQL generation --- server/models/shared/abstract-run-query.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'server/models/shared') diff --git a/server/models/shared/abstract-run-query.ts b/server/models/shared/abstract-run-query.ts index c39b7bcfe..f1182c7be 100644 --- a/server/models/shared/abstract-run-query.ts +++ b/server/models/shared/abstract-run-query.ts @@ -25,4 +25,8 @@ export class AbstractRunQuery { return this.sequelize.query(this.query, queryOptions) } + + protected buildSelect (entities: string[]) { + return `SELECT ${entities.join(', ')} ` + } } -- cgit v1.2.3