aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
Diffstat (limited to 'server/models')
-rw-r--r--server/models/utils.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/utils.ts b/server/models/utils.ts
index 69ad123ac..93723816f 100644
--- a/server/models/utils.ts
+++ b/server/models/utils.ts
@@ -258,12 +258,12 @@ function buildSQLAttributes <M extends Model> (options: {
258 model: ModelStatic<M> 258 model: ModelStatic<M>
259 tableName: string 259 tableName: string
260 260
261 excludeAttributes?: (keyof AttributesOnly<M>)[] 261 excludeAttributes?: Exclude<keyof AttributesOnly<M>, symbol>[]
262 aliasPrefix?: string 262 aliasPrefix?: string
263}) { 263}) {
264 const { model, tableName, aliasPrefix, excludeAttributes } = options 264 const { model, tableName, aliasPrefix, excludeAttributes } = options
265 265
266 const attributes = Object.keys(model.getAttributes()) 266 const attributes = Object.keys(model.getAttributes()) as Exclude<keyof AttributesOnly<M>, symbol>[]
267 267
268 return attributes 268 return attributes
269 .filter(a => { 269 .filter(a => {