Correctly fix build

This commit is contained in:
Chocobozzz 2023-01-09 14:21:03 +01:00
parent bde404995e
commit f99a3f7dce
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 2 additions and 3 deletions

View File

@ -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 => {

View File

@ -8,7 +8,6 @@
"@shared/*": [ "shared/*" ]
},
"typeRoots": [
"server/typings",
"node_modules/@types"
]
},