mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: update environment variables names
This commit is contained in:
@@ -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}`,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user