mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: upatate migration script
This commit is contained in:
@@ -442,7 +442,10 @@ const migrateAttachmentMessages = async ({
|
||||
type: response.headers['content-type'],
|
||||
channel: {},
|
||||
});
|
||||
await updateAttachmentId(msg._id, attachment.id);
|
||||
|
||||
if (attachment) {
|
||||
await updateAttachmentId(msg._id, attachment.id);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
logger.warn(
|
||||
|
||||
Reference in New Issue
Block a user