Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Correctly fix build

Chocobozzzf99a3f7dce13
diff --git a/server/models/utils.ts b/server/models/utils.ts
index 69ad123ac9..93723816f2 100644
--- a/server/models/utils.ts
+++ b/server/models/utils.ts
@@ -258,12 +258,12 @@ function buildSQLAttributes <M extends Model> (options: {
model: ModelStatic<M>
tableName: string
- excludeAttributes?: (keyof AttributesOnly<M>)[]
+ excludeAttributes?: Exclude<keyof AttributesOnly<M>, symbol>[]
aliasPrefix?: string
}) {
const { model, tableName, aliasPrefix, excludeAttributes } = options
- const attributes = Object.keys(model.getAttributes())
+ const attributes = Object.keys(model.getAttributes()) as Exclude<keyof AttributesOnly<M>, symbol>[]
return attributes
.filter(a => {
diff --git a/tsconfig.json b/tsconfig.json
index 38758ff3f5..8bcd944e3c 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -8,7 +8,6 @@
"@shared/*": [ "shared/*" ]
},
"typeRoots": [
- "server/typings",
"node_modules/@types"
]
},