From fef046e62cd9bee2815476dd25e190e488bdf283 Mon Sep 17 00:00:00 2001 From: Peter Savchenko Date: Sat, 21 Oct 2023 16:24:53 +0300 Subject: [PATCH] fix: eslint --- src/presentation/http/http-api.ts | 19 ++++++++++--------- src/tests/utils/insert-data.ts | 2 +- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/presentation/http/http-api.ts b/src/presentation/http/http-api.ts index f9489286..e66b871d 100644 --- a/src/presentation/http/http-api.ts +++ b/src/presentation/http/http-api.ts @@ -129,11 +129,11 @@ export default class HttpApi implements Api { }, servers: [ { url: 'http://localhost:1337', - description: 'Localhost environment' + description: 'Localhost environment', }, { url: 'https://notex.so', - description: 'Stage environment' - }], + description: 'Stage environment', + } ], components: { securitySchemes: { oAuthGoogle: { @@ -143,14 +143,15 @@ export default class HttpApi implements Api { authorizationCode: { authorizationUrl: 'https://notex.so/oauth/google/login', scopes: { + // eslint-disable-next-line @typescript-eslint/naming-convention 'notes_management': 'Create, read, update and delete notes', }, - tokenUrl: '' - } - } - } - } - } + tokenUrl: '', + }, + }, + }, + }, + }, }, }); } diff --git a/src/tests/utils/insert-data.ts b/src/tests/utils/insert-data.ts index 5b41b130..3b463d31 100644 --- a/src/tests/utils/insert-data.ts +++ b/src/tests/utils/insert-data.ts @@ -32,7 +32,7 @@ async function insertNotes(db: SequelizeOrm): Promise { */ async function insertNoteSettings(db: SequelizeOrm): Promise { for (const noteSetting of noteSettings) { - await db.connection.query(`INSERT INTO public.notes_settings (id, "note_id", "custom_hostname", "enabled") VALUES (${noteSetting.id}, '${noteSetting.note_id}', '${noteSetting.custom_hostname}', ${noteSetting.enabled})`); + await db.connection.query(`INSERT INTO public.note_settings (id, "note_id", "custom_hostname", "enabled") VALUES (${noteSetting.id}, '${noteSetting.note_id}', '${noteSetting.custom_hostname}', ${noteSetting.enabled})`); } }