From 52ba1a2c52e05afbdb7cdd5d5448fe16375dcb52 Mon Sep 17 00:00:00 2001 From: slaveeks Date: Sat, 21 Oct 2023 03:18:47 +0300 Subject: [PATCH] fix: set new url in request and added enabled to NoteSettings entity --- src/domain/entities/NoteSettings.ts | 5 +++++ src/infrastructure/noteSettings.repository.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/domain/entities/NoteSettings.ts b/src/domain/entities/NoteSettings.ts index ce0f739e..686cfe44 100644 --- a/src/domain/entities/NoteSettings.ts +++ b/src/domain/entities/NoteSettings.ts @@ -11,4 +11,9 @@ export default interface NoteSettings { * Custom hostname */ customHostname: string; + + /** + * Is note enabled + */ + enabled: boolean; } diff --git a/src/infrastructure/noteSettings.repository.ts b/src/infrastructure/noteSettings.repository.ts index 7e9a00fb..ed71195b 100644 --- a/src/infrastructure/noteSettings.repository.ts +++ b/src/infrastructure/noteSettings.repository.ts @@ -29,6 +29,6 @@ export default class NoteSettingsRepository implements NoteSettingsRepositoryInt * @returns { NoteSettings } - NoteSettings instance */ public async getNoteSettingsById(id: NoteId): Promise { - return await this.transport.get('/note/' + id + '/settings'); + return await this.transport.get('/note-settings/' + id); } }