파일 업로드기능 완료
This commit is contained in:
@@ -198,7 +198,7 @@ exports.createClub = async (req, res) => {
|
||||
if (basicPlan) {
|
||||
const startDate = new Date();
|
||||
const endDate = new Date();
|
||||
endDate.setMonth(endDate.getMonth() + 1); // 1개월 추가
|
||||
endDate.setFullYear(endDate.getFullYear() + 1); // 1년 추가
|
||||
|
||||
await require('../models').ClubSubscription.create({
|
||||
clubId: newClub.id,
|
||||
@@ -387,7 +387,7 @@ exports.getClubMembers = async (req, res) => {
|
||||
// 클럽 회원 추가
|
||||
exports.addClubMember = async (req, res) => {
|
||||
try {
|
||||
const { clubId, userId, name, gender, memberType, email, phone } = req.body;
|
||||
const { clubId, userId, name, gender, memberType, email, phone, handicap, status } = req.body;
|
||||
|
||||
if (!clubId || !name || !gender) {
|
||||
return res.status(400).json({ message: '필수 정보가 누락되었습니다.' });
|
||||
@@ -406,7 +406,9 @@ exports.addClubMember = async (req, res) => {
|
||||
gender,
|
||||
memberType: memberType || '준회원',
|
||||
email,
|
||||
phone
|
||||
phone,
|
||||
handicap,
|
||||
status: status || 'active'
|
||||
});
|
||||
|
||||
// 클럽의 회원 수 업데이트
|
||||
|
||||
Reference in New Issue
Block a user