From f99a3f7dce13f8d713db2ace75e412e700f28f62 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 9 Jan 2023 14:21:03 +0100 Subject: Correctly fix build --- server/models/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/models') 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 => { -- cgit v1.2.3