Skip to content

Commit ea9b5a5

Browse files
authored
๐Ÿ‘ฝ Fix type NewEventRequest (#50)
### ๐Ÿ“ ์ž‘์—… ๋‚ด์šฉ - ์ผ์ • ์ƒ์„ฑ api์˜ request ์ˆ˜์ •ํ–ˆ์Šต๋‹ˆ๋‹ค! ### ๐Ÿ“ธ ์Šคํฌ๋ฆฐ์ƒท (์„ ํƒ) ### ๐Ÿš€ ๋ฆฌ๋ทฐ ์š”๊ตฌ์‚ฌํ•ญ (์„ ํƒ) - ๋ฆฌ๋ทฐ์–ด๊ฐ€ ํŠน๋ณ„ํžˆ ๋ด์ฃผ์—ˆ์œผ๋ฉด ํ•˜๋Š” ๋ถ€๋ถ„์ด ์žˆ๋‹ค๋ฉด ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”.
1 parent cbcf37d commit ea9b5a5

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

โ€Žsrc/routes/NewEvent.tsxโ€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ export default function NewEvent() {
7878
registrationEndsAt: regiEndDate
7979
? regiEndDate.toISOString()
8080
: '2099-12-31T23:59:59.999Z', // placeholder
81-
createdBy: user.id,
8281
};
8382

8483
const response = await createEvent(payload);

โ€Žsrc/types/events.tsโ€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import type {
1111
export interface CreateEventRequest extends Event {
1212
description?: string;
1313
waitlistEnabled: boolean;
14-
createdBy: UserId;
1514
}
1615

1716
// ---------- GET /:id ----------

0 commit comments

Comments
ย (0)