refactor(core): Restore typechecker strictness level in @n8n/db (#16012)

This commit is contained in:
Iván Ovejero
2025-06-04 13:52:41 +02:00
committed by GitHub
parent ebff88cb44
commit 30d75db9e3
3 changed files with 1 additions and 4 deletions

View File

@@ -39,7 +39,6 @@ export class AddApiKeysTable1724951148974 implements ReversibleMigration {
// Move the apiKey from the users table to the new table
await Promise.all(
usersWithApiKeys.map(
// @ts-expect-error Tech debt
async (user: { id: string; apiKey: string }) =>
await runQuery(
`INSERT INTO ${userApiKeysTable} (${idColumn}, ${userIdColumn}, ${apiKeyColumn}, ${labelColumn}) VALUES (:id, :userId, :apiKey, :label)`,
@@ -97,7 +96,6 @@ export class AddApiKeysTable1724951148974 implements ReversibleMigration {
await Promise.all(
oldestApiKeysPerUser.map(
// @ts-expect-error Tech debt
async (user: { userId: string; apiKey: string }) =>
await runQuery(
`UPDATE ${userTable} SET ${apiKeyColumn} = :apiKey WHERE ${idColumn} = :userId`,

View File

@@ -30,7 +30,6 @@ export class AddApiKeysTable1724951148974 implements ReversibleMigration {
// Move the apiKey from the users table to the new table
await Promise.all(
usersWithApiKeys.map(
// @ts-expect-error Tech debt
async (user: { id: string; apiKey: string }) =>
await runQuery(
`INSERT INTO ${tableName} ("id", "userId", "apiKey", "label") VALUES (:id, :userId, :apiKey, :label)`,
@@ -115,7 +114,6 @@ export class AddApiKeysTable1724951148974 implements ReversibleMigration {
await Promise.all(
oldestApiKeysPerUser.map(
// @ts-expect-error Tech debt
async (user: { userId: string; apiKey: string }) =>
await runQuery(
`UPDATE ${tablePrefix}user SET ${apiKeyColumn} = :apiKey WHERE ${idColumn} = :userId`,

View File

@@ -9,6 +9,7 @@
"emitDecoratorMetadata": true,
// remove all options below this line
"strict": false,
"strictPropertyInitialization": false
},
"include": ["src/**/*.ts"],