🔧 refactor(plan): update imports to use .js extensions and secure delete route with admin auth
This commit is contained in:
@@ -7,6 +7,7 @@ const update_profile_into_db = async (req: Request) => {
|
||||
const user = req?.user as JwtPayloadType;
|
||||
const payload = req?.body;
|
||||
const file = req?.file;
|
||||
console.log(payload);
|
||||
// check file and upload to cloud
|
||||
if (file) {
|
||||
const cloudRes = await uploadCloud(file);
|
||||
|
||||
Reference in New Issue
Block a user