We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37071df commit 01777e7Copy full SHA for 01777e7
src/infrastructure/note.repository.ts
@@ -65,7 +65,7 @@ export default class NoteRepository implements NoteRepositoryInterface {
65
* @param onlyCreatedByUser - if true, returns notes created by the user, otherwise returns all notes
66
*/
67
public async getNoteList(page: number, onlyCreatedByUser = false): Promise<NoteList> {
68
- const endpoint = onlyCreatedByUser ? '/notes/my' : '/notes';
+ const endpoint = onlyCreatedByUser ? '/notes/created' : '/notes';
69
70
return await this.transport.get<NoteList>(endpoint, { page });
71
}
0 commit comments