Skip to content

Commit

Permalink
Don't ignore uuid parameters in note requests
Browse files Browse the repository at this point in the history
Fixes #27
  • Loading branch information
RappyTV committed Nov 19, 2024
1 parent 13b7699 commit ac3f266
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ public void getNotes(UUID uuid, Consumer<ApiResponse<List<PlayerNote>>> consumer
new ApiRequest<>(
api,
"GET",
Routes.notes(api.getClientUUID()),
Routes.notes(uuid),
emptyBody,
NoteSchema[].class
).sendRequestAsync((response) -> {
Expand Down Expand Up @@ -631,7 +631,7 @@ public void createNote(UUID uuid, String note, Consumer<ApiResponse<String>> con
new ApiRequest<>(
api,
"POST",
Routes.notes(api.getClientUUID()),
Routes.notes(uuid),
Map.of("note", note),
MessageSchema.class
).sendRequestAsync((response) -> {
Expand Down Expand Up @@ -664,7 +664,7 @@ public void getNote(UUID uuid, String noteId, Consumer<ApiResponse<PlayerNote>>
new ApiRequest<>(
api,
"GET",
Routes.note(api.getClientUUID(), noteId),
Routes.note(uuid, noteId),
emptyBody,
NoteSchema.class
).sendRequestAsync((response) -> {
Expand Down Expand Up @@ -707,7 +707,7 @@ public void deleteNote(UUID uuid, String noteId, Consumer<ApiResponse<String>> c
new ApiRequest<>(
api,
"DELETE",
Routes.note(api.getClientUUID(), noteId),
Routes.note(uuid, noteId),
emptyBody,
MessageSchema.class
).sendRequestAsync((response) -> {
Expand Down

0 comments on commit ac3f266

Please sign in to comment.