0f7af70b90
Updated Docker configuration, refactored middleware for improved error handling, and restructured account, order, plan, profile, and support modules, including their routes, services, and validations. Enhanced email processing queues and utilities for token generation, pagination, and response management to streamline the application architecture and enhance maintainability.
16 lines
513 B
JavaScript
16 lines
513 B
JavaScript
import catchAsync from "../../utils/catch_async.js";
|
|
import manageResponse from "../../utils/manage_response.js";
|
|
import { profile_service } from "./profile.service.js";
|
|
const update_profile = catchAsync(async (req, res) => {
|
|
const result = await profile_service.update_profile_into_db(req);
|
|
manageResponse(res, {
|
|
success: true,
|
|
statusCode: 200,
|
|
message: "profile updated successfully.",
|
|
data: result,
|
|
});
|
|
});
|
|
export const profile_controller = {
|
|
update_profile,
|
|
};
|