버그 수정
This commit is contained in:
@@ -29,6 +29,15 @@ const adminService = {
|
||||
return apiClient.get(`/api/admin/clubs/${id}`);
|
||||
},
|
||||
|
||||
/**
|
||||
* 새 클럽 생성
|
||||
* @param {Object} clubData - 클럽 정보
|
||||
* @returns {Promise} - 생성된 클럽 정보
|
||||
*/
|
||||
createClub(clubData) {
|
||||
return apiClient.post('/api/admin/clubs', clubData);
|
||||
},
|
||||
|
||||
/**
|
||||
* 클럽 정보 업데이트
|
||||
* @param {Number} id - 클럽 ID
|
||||
|
||||
@@ -60,8 +60,8 @@ export default {
|
||||
try {
|
||||
const formattedEvent = {
|
||||
...event,
|
||||
startDate: dayjs(event.startDate).format('YYYY-MM-DD'),
|
||||
endDate: event.endDate ? dayjs(event.endDate).format('YYYY-MM-DD') : null
|
||||
startDate: dayjs(event.startDate).format('YYYY-MM-DDTHH:mm:ssZ'),
|
||||
endDate: event.endDate ? dayjs(event.endDate).format('YYYY-MM-DDTHH:mm:ssZ') : null
|
||||
};
|
||||
|
||||
const response = await apiClient.post('/api/club/events/create', formattedEvent);
|
||||
@@ -87,8 +87,8 @@ export default {
|
||||
try {
|
||||
const formattedEvent = {
|
||||
...event,
|
||||
startDate: dayjs(event.startDate).format('YYYY-MM-DD'),
|
||||
endDate: dayjs(event.endDate).format('YYYY-MM-DD')
|
||||
startDate: dayjs(event.startDate).format('YYYY-MM-DDTHH:mm:ssZ'),
|
||||
endDate: event.endDate ? dayjs(event.endDate).format('YYYY-MM-DDTHH:mm:ssZ') : null
|
||||
};
|
||||
|
||||
const response = await apiClient.put(`/api/club/events/${event.id}`, formattedEvent);
|
||||
|
||||
Reference in New Issue
Block a user