From f99a3f7dce13f8d713db2ace75e412e700f28f62 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 9 Jan 2023 14:21:03 +0100 Subject: [PATCH] Correctly fix build --- server/models/utils.ts | 4 ++-- tsconfig.json | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) 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 => { diff --git a/tsconfig.json b/tsconfig.json index 38758ff3f..8bcd944e3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,7 +8,6 @@ "@shared/*": [ "shared/*" ] }, "typeRoots": [ - "server/typings", "node_modules/@types" ] },