fix: format prices in notifications, change partial payment label, and add session holding notify API

This commit is contained in:
2026-08-21 20:17:30 +03:30
parent 6839685a21
commit 4c07ca2ae1
9 changed files with 145 additions and 14 deletions
+6
View File
@@ -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);