fixing
This commit is contained in:
@ -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('.');
|
||||||
|
|||||||
Reference in New Issue
Block a user