diff --git a/src/controllers/linkController.ts b/src/controllers/linkController.ts index 734c931..f89d076 100644 --- a/src/controllers/linkController.ts +++ b/src/controllers/linkController.ts @@ -167,7 +167,6 @@ export async function createLinkHandler( // Failed (short uri + if enabled, subdomain combo is taken)? if (returnedId.exists && returnedId.id == -1) { - console.log(returnedId); const error: ms.ErrorDTO = { status: 'error', error: `"${req.body.uri}" is already taken. Maybe try "${generateSentenceString()}"?`, diff --git a/src/data-source.ts b/src/data-source.ts index 322c5d8..12be7b1 100644 --- a/src/data-source.ts +++ b/src/data-source.ts @@ -15,4 +15,5 @@ export const AppDataSource = new DataSource({ entities: [__dirname + '/entities/*.ts'], migrations: [__dirname + '/migrations/*.ts'], subscribers: [], + parseInt8: true }) diff --git a/tsconfig.json b/tsconfig.json index 6c1424d..b9e6dfb 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,7 @@ "es2021" ], "types": ["node"], - "target": "es2021", + "target": "esnext", "module": "commonjs", "moduleResolution": "node", "outDir": "./build",