diff options
-rw-r--r-- | server/models/utils.ts | 4 | ||||
-rw-r--r-- | tsconfig.json | 1 |
2 files changed, 2 insertions, 3 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 => { |
diff --git a/tsconfig.json b/tsconfig.json index 38758ff3f..8bcd944e3 100644 --- a/tsconfig.json +++ b/tsconfig.json | |||
@@ -8,7 +8,6 @@ | |||
8 | "@shared/*": [ "shared/*" ] | 8 | "@shared/*": [ "shared/*" ] |
9 | }, | 9 | }, |
10 | "typeRoots": [ | 10 | "typeRoots": [ |
11 | "server/typings", | ||
12 | "node_modules/@types" | 11 | "node_modules/@types" |
13 | ] | 12 | ] |
14 | }, | 13 | }, |