fix: upatate migration script

This commit is contained in:
yassinedorbozgithub 2025-01-15 10:40:26 +01:00
parent e42d8aad39
commit b4006f591c

View File

@ -442,8 +442,11 @@ const migrateAttachmentMessages = async ({
type: response.headers['content-type'],
channel: {},
});
if (attachment) {
await updateAttachmentId(msg._id, attachment.id);
}
}
} else {
logger.warn(
`Unable to migrate message ${msg._id}: No ID nor URL was found`,