Skip to content

Commit a1746e7

Browse files
committed
[DOP-25451] Replace all PATCH methods with PUT
1 parent 0e0a6fa commit a1746e7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/entities/group/api/groupService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const groupService = {
2929
},
3030

3131
updateGroup: ({ id, ...data }: UpdateGroupRequest): Promise<GroupData> => {
32-
return axiosInstance.patch(`groups/${id}`, data);
32+
return axiosInstance.put(`groups/${id}`, data);
3333
},
3434

3535
getGroupUsers: ({ id }: GetGroupUsersRequest): Promise<PaginationResponse<GroupUser>> => {
@@ -41,7 +41,7 @@ export const groupService = {
4141
},
4242

4343
updateGroupUser: ({ groupId, userId, ...data }: UpdateGroupUserRequest): Promise<null> => {
44-
return axiosInstance.patch(`groups/${groupId}/users/${userId}`, data);
44+
return axiosInstance.put(`groups/${groupId}/users/${userId}`, data);
4545
},
4646

4747
deleteGroupUser: ({ groupId, userId }: DeleteGroupUserRequest): Promise<null> => {

src/entities/queue/api/queueService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const queueService = {
2424
},
2525

2626
updateQueue: ({ id, ...data }: UpdateQueueRequest): Promise<Queue> => {
27-
return axiosInstance.patch(`queues/${id}`, data);
27+
return axiosInstance.put(`queues/${id}`, data);
2828
},
2929

3030
deleteQueue: ({ id }: DeleteQueueRequest): Promise<null> => {

0 commit comments

Comments
 (0)