Skip to content

Commit 01777e7

Browse files
committed
fix: update endpoint for retrieving user-created notes
1 parent 37071df commit 01777e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/infrastructure/note.repository.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export default class NoteRepository implements NoteRepositoryInterface {
6565
* @param onlyCreatedByUser - if true, returns notes created by the user, otherwise returns all notes
6666
*/
6767
public async getNoteList(page: number, onlyCreatedByUser = false): Promise<NoteList> {
68-
const endpoint = onlyCreatedByUser ? '/notes/my' : '/notes';
68+
const endpoint = onlyCreatedByUser ? '/notes/created' : '/notes';
6969

7070
return await this.transport.get<NoteList>(endpoint, { page });
7171
}

0 commit comments

Comments
 (0)