Skip to content

Commit 966559f

Browse files
author
Bence KOLONICS
committed
Merge branch 'fix-del-from-room-new-endpoint' into 'master'
fixed deprecated endpoints See merge request services/adh6/adh6!42
2 parents abea128 + dc1a64b commit 966559f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

api_server/adh6/decorator/log_call.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def wrapper(cls, *args, **kwargs):
1919
Wrap http_api function.
2020
"""
2121
import logging
22-
print(kwargs)
22+
#print(kwargs)
2323
logging.debug(f"{type(cls).__name__}_{f.__name__}_called | {args} | {kwargs}")
2424
with tracer.start_as_current_span(f"{type(cls).__name__}.{f.__name__}"):
2525
return f(cls, *args, **kwargs)

frontend_angular/src/app/room/room-details/room-details.component.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class RoomDetailsComponent implements OnInit {
7171
this.memberService.memberGet(1, 0, v.username)
7272
.subscribe((member_list) => {
7373
const member = member_list[0];
74-
this.roomMemberService.roomIdMemberAddPatch(this.room_id, { id: member })
74+
this.roomMemberService.roomIdMemberPost(this.room_id, { id: member })
7575
.subscribe((_) => {
7676
this.refreshInfo();
7777
this.notificationService.successNotification();
@@ -91,7 +91,7 @@ export class RoomDetailsComponent implements OnInit {
9191
return
9292
}
9393
const room = rooms[0];
94-
this.roomMemberService.roomIdMemberAddPatch(room.id, { id: memberId })
94+
this.roomMemberService.roomIdMemberPost(room.id, { id: memberId })
9595
.subscribe((_) => {
9696
this.refreshInfo();
9797
this.onDemenager(memberId);
@@ -102,7 +102,7 @@ export class RoomDetailsComponent implements OnInit {
102102
}
103103

104104
onRemoveFromRoom(memberId: number) {
105-
this.roomMemberService.roomIdMemberDelPatch(this.room_id, { id: memberId })
105+
this.roomMemberService.roomIdMemberDelete(this.room_id, memberId)
106106
.subscribe((_) => {
107107
this.refreshInfo();
108108
this.notificationService.successNotification();

0 commit comments

Comments
 (0)