X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmodels%2Futils.ts;h=93723816f29bc499a49349c7ec9a13beadc1bd27;hb=a8749f7c3b137f433e6944bb99fd721a6f0cfc1e;hp=69ad123ac9eb87aea08fc36caa71f1081d08f874;hpb=eb66ee88351a93eb68c366cfbe30d35ed7c57b03;p=github%2FChocobozzz%2FPeerTube.git 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 (options: { model: ModelStatic tableName: string - excludeAttributes?: (keyof AttributesOnly)[] + excludeAttributes?: Exclude, symbol>[] aliasPrefix?: string }) { const { model, tableName, aliasPrefix, excludeAttributes } = options - const attributes = Object.keys(model.getAttributes()) + const attributes = Object.keys(model.getAttributes()) as Exclude, symbol>[] return attributes .filter(a => {