mirror of
https://github.com/hexastack/hexabot
synced 2025-01-22 10:35:37 +00:00
fix: upatate migration script
This commit is contained in:
parent
e42d8aad39
commit
b4006f591c
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user