mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: minor fixes
This commit is contained in:
@@ -787,6 +787,10 @@ export default abstract class BaseWebChannelHandler<
|
||||
const attachment = await this.handleUpload(req, res);
|
||||
if (attachment) {
|
||||
event._adapter.attachment = attachment;
|
||||
event._adapter.raw.data = {
|
||||
type: Attachment.getTypeByMime(attachment.type),
|
||||
url: await this.getPublicUrl(attachment),
|
||||
};
|
||||
}
|
||||
} catch (err) {
|
||||
this.logger.warn(
|
||||
|
||||
Reference in New Issue
Block a user