Skip to content

Commit

Permalink
fix : updateUser 에러 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
seokahi committed Feb 6, 2022
1 parent d7b84cc commit eb1ad60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/server/routes/events/updateEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import UpdateEvent from '../../../service/event/UpdateEvent';

const schema = defineSchema({
params: {
eventId: z.number(),
eventId: z.string(),
},
query: {
host:z.string().optional(),
Expand Down
5 changes: 3 additions & 2 deletions src/service/event/UpdateEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ import { number } from 'zod';
import Event from '../../entity/Event';

class UpdateEvent {
async patchEvent(eventId:number, req_query:Object): Promise<string> {
async patchEvent(eventId:string, req_query:Object): Promise<string> {
const eventid = parseInt(eventId)
const patchevent = await Event.update(
{
id : eventId
id : eventid
},
req_query
);
Expand Down

0 comments on commit eb1ad60

Please sign in to comment.