fix: format prices in notifications, change partial payment label, and add session holding notify API
This commit is contained in:
@@ -57,6 +57,12 @@ exports.updateAttendance = catchAsync(async (req, res, next) => {
|
||||
return successResponse(res, 200, 'Session attendance updated successfully', session);
|
||||
});
|
||||
|
||||
exports.notifyHolding = catchAsync(async (req, res, next) => {
|
||||
const actorId = req.user?._id;
|
||||
const result = await sessionService.notifySessionHolding(req.params.id, actorId);
|
||||
return successResponse(res, 200, 'اطلاعرسانی برگزاری جلسه با موفقیت انجام شد', result);
|
||||
});
|
||||
|
||||
exports.getMySessions = catchAsync(async (req, res, next) => {
|
||||
const { data, meta } = await sessionService.getMySessions(req.user._id, req.query);
|
||||
return listResponse(res, 200, data, meta);
|
||||
|
||||
Reference in New Issue
Block a user