This commit is contained in:
Narul Hidayah
2026-02-12 00:03:58 +07:00
parent 979ae9a558
commit ff14cf631b
12 changed files with 28 additions and 28 deletions

View File

@ -204,7 +204,7 @@ export class RoomController {
let affected = 0;
if (!param.hard) {
let room: Room = await RoomModel.list({ id: param.id }).then((q) => q.getOne());
let room: Room = await RoomModel.list({ "Room.id": param.id }).then((q) => q.getOne());
if (!room) throw { message: "Room " + Language.lang.failed_not_found };
room.deleted_by = req.auth.data.name;
room.deleted_at = moment().toDate();