260728_02_ENH: SID String으로 교체

This commit is contained in:
2026-07-28 11:47:33 +09:00
parent d97015741a
commit d9f53c0c3d
18 changed files with 151 additions and 54 deletions

View File

@@ -15,7 +15,7 @@ export type ReservationListDialogProps = {
}
// 오늘과 가장 가까운(과거/미래 무관) 예약의 sid를 찾는다.
export const findClosestReservationSid = (reservations: ListReserve[], now: Date = new Date()): number | null => {
export const findClosestReservationSid = (reservations: ListReserve[], now: Date = new Date()): string | null => {
if (reservations.length === 0) return null
return reservations.reduce((closest, current) => {
@@ -45,8 +45,8 @@ const ReservationListDialog = ({
hideDialog(dialogId)
}
const handleSelect = (sid: number) => {
onSelectReservation(String(sid))
const handleSelect = (sid: string) => {
onSelectReservation(sid)
handleOpenChange(false)
}

View File

@@ -123,7 +123,7 @@ const SingleMessageSendDialog = ({
tmplatIdx: templateIdx,
resve: scheduleType === 'reserve',
sendDt: scheduleType === 'reserve' ? new Date(reserveAt).toISOString() : undefined,
sid: Number(sid),
sid,
destHeaderIds: [destHeaderId],
})