This commit is contained in:
Muhammad Rayhan Ardiansyah
2026-03-17 14:39:18 +07:00
parent a0f7c989ab
commit 648bdeb46c

View File

@ -492,7 +492,7 @@ export class PharmacyInfoController {
path: { path: {
type: "string", type: "string",
description: 'File path', description: 'File path',
default: 'uploads/hospital-logo' default: 'uploads/pharmacy-info'
}, },
application: { application: {
type: "string", type: "string",
@ -539,7 +539,7 @@ export class PharmacyInfoController {
// Normalize path // Normalize path
param.path = param.path[param.path.length - 1] !== '/' ? param.path + '/' : param.path; param.path = param.path[param.path.length - 1] !== '/' ? param.path + '/' : param.path;
if (param.path == undefined || param.path == null) param.path = 'uploads/pharmacy-logo/'; if (param.path == undefined || param.path == null) param.path = 'uploads/pharmacy-info/';
// Generate unique filename // Generate unique filename
const ext = file.name.split('.'); const ext = file.name.split('.');