aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/utils.ts')
-rw-r--r--server/models/utils.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/models/utils.ts b/server/models/utils.ts
index 3476799ce..0b6ac8340 100644
--- a/server/models/utils.ts
+++ b/server/models/utils.ts
@@ -231,12 +231,12 @@ function parseRowCountResult (result: any) {
231 return 0 231 return 0
232} 232}
233 233
234function createSafeIn (sequelize: Sequelize, stringArr: (string | number)[]) { 234function createSafeIn (sequelize: Sequelize, toEscape: (string | number)[], additionalUnescaped: string[] = []) {
235 return stringArr.map(t => { 235 return toEscape.map(t => {
236 return t === null 236 return t === null
237 ? null 237 ? null
238 : sequelize.escape('' + t) 238 : sequelize.escape('' + t)
239 }).join(', ') 239 }).concat(additionalUnescaped).join(', ')
240} 240}
241 241
242function buildLocalAccountIdsIn () { 242function buildLocalAccountIdsIn () {