aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-01-09 14:21:03 +0100
committerChocobozzz <me@florianbigard.com>2023-01-09 14:22:36 +0100
commitf99a3f7dce13f8d713db2ace75e412e700f28f62 (patch)
tree83b7a3a5ab8372de7fec77d908c9eb18038a882f /server/models
parentbde404995e737a247889abfc2047d2316a7bc9d8 (diff)
downloadPeerTube-f99a3f7dce13f8d713db2ace75e412e700f28f62.tar.gz
PeerTube-f99a3f7dce13f8d713db2ace75e412e700f28f62.tar.zst
PeerTube-f99a3f7dce13f8d713db2ace75e412e700f28f62.zip
Correctly fix build
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 => {