diff options
author | Chocobozzz <me@florianbigard.com> | 2023-01-09 14:21:03 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-01-09 14:22:36 +0100 |
commit | f99a3f7dce13f8d713db2ace75e412e700f28f62 (patch) | |
tree | 83b7a3a5ab8372de7fec77d908c9eb18038a882f | |
parent | bde404995e737a247889abfc2047d2316a7bc9d8 (diff) | |
download | PeerTube-f99a3f7dce13f8d713db2ace75e412e700f28f62.tar.gz PeerTube-f99a3f7dce13f8d713db2ace75e412e700f28f62.tar.zst PeerTube-f99a3f7dce13f8d713db2ace75e412e700f28f62.zip |
Correctly fix build
-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 | }, |