Skip to content

Commit e7fda51

Browse files
committed
docs/api-event-in-cameras
แก้ให้ Comment ให้เหมือนกันเปลี่ยนจาก event_id เป็น evt_id
1 parent fd88120 commit e7fda51

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

server/src/controllers/events.controller.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export async function getGlobalEventById(req: Request, res: Response, next: Next
202202
} catch (err) {
203203
next(err);
204204
}
205-
};
205+
}
206206

207207
/**
208208
* อัปเดตการตั้งค่าการตรวจจับระดับ Global (GDS) ของเหตุการณ์ที่ระบุ
@@ -236,12 +236,12 @@ export async function updateGlobalEvent(req: Request, res: Response, next: NextF
236236
} catch (err) {
237237
next(err);
238238
}
239-
};
239+
}
240240

241241
/**
242242
* ดึงรายการกล้องทั้งหมดที่ตรวจพบเหตุการณ์ตามรหัสที่ระบุ
243243
*
244-
* @param {Request} req - Express Request ที่มี event_id ใน params
244+
* @param {Request} req - Express Request ที่มี evt_id ใน params
245245
* @param {Response} res - Express Response
246246
* @param {NextFunction} next - ฟังก์ชันส่งต่อข้อผิดพลาดให้ middleware ถัดไป
247247
* @returns {Promise<Response>} ข้อมูลรายการกล้องที่ตรวจพบเหตุการณ์
@@ -259,4 +259,4 @@ export async function getEventInCamerasById(req: Request, res: Response, next: N
259259
} catch (err) {
260260
next(err);
261261
}
262-
};
262+
}

server/src/services/events.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,4 +336,4 @@ export async function getEventInCamerasById(event_id: number) {
336336
);
337337

338338
return rows;
339-
};
339+
}

0 commit comments

Comments
 (0)