mirror of https://github.com/Chocobozzz/PeerTube
Correctly fix build
parent
bde404995e
commit
f99a3f7dce
|
@ -258,12 +258,12 @@ function buildSQLAttributes <M extends Model> (options: {
|
||||||
model: ModelStatic<M>
|
model: ModelStatic<M>
|
||||||
tableName: string
|
tableName: string
|
||||||
|
|
||||||
excludeAttributes?: (keyof AttributesOnly<M>)[]
|
excludeAttributes?: Exclude<keyof AttributesOnly<M>, symbol>[]
|
||||||
aliasPrefix?: string
|
aliasPrefix?: string
|
||||||
}) {
|
}) {
|
||||||
const { model, tableName, aliasPrefix, excludeAttributes } = options
|
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
|
return attributes
|
||||||
.filter(a => {
|
.filter(a => {
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
"@shared/*": [ "shared/*" ]
|
"@shared/*": [ "shared/*" ]
|
||||||
},
|
},
|
||||||
"typeRoots": [
|
"typeRoots": [
|
||||||
"server/typings",
|
|
||||||
"node_modules/@types"
|
"node_modules/@types"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue