Skip to content

Commit

Permalink
Merge pull request #62 from codex-team/fix/note-settings-url
Browse files Browse the repository at this point in the history
fix: set new url in request and added enabled to NoteSettings entity
  • Loading branch information
slaveeks authored Oct 21, 2023
2 parents a14f9d9 + 52ba1a2 commit ca3cc23
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/domain/entities/NoteSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,9 @@ export default interface NoteSettings {
* Custom hostname
*/
customHostname: string;

/**
* Is note enabled
*/
enabled: boolean;
}
2 changes: 1 addition & 1 deletion src/infrastructure/noteSettings.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ export default class NoteSettingsRepository implements NoteSettingsRepositoryInt
* @returns { NoteSettings } - NoteSettings instance
*/
public async getNoteSettingsById(id: NoteId): Promise<NoteSettings> {
return await this.transport.get<GetNoteSettingsResponsePayload>('/note/' + id + '/settings');
return await this.transport.get<GetNoteSettingsResponsePayload>('/note-settings/' + id);
}
}

0 comments on commit ca3cc23

Please sign in to comment.