fix: update environment variables names

This commit is contained in:
yassinedorbozgithub
2024-12-02 10:27:27 +01:00
parent a3bd044509
commit 65c52e645d
8 changed files with 13 additions and 11 deletions

View File

@@ -91,7 +91,7 @@ export class Attachment extends BaseSchema {
attachmentName: string = '',
): string {
return buildURL(
config.apiPath,
config.apiBaseUrl,
`/attachment/download/${attachmentId}/${attachmentName}`,
);
}
@@ -124,7 +124,7 @@ export const AttachmentModel: ModelDefinition = LifecycleHookManager.attach({
AttachmentModel.schema.virtual('url').get(function () {
if (this._id && this.name)
return buildURL(
config.apiPath,
config.apiBaseUrl,
`/attachment/download/${this._id}/${this.name}`,
);