mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: clear parsed post cache when updating a post's attachments, #13164
This commit is contained in:
@@ -63,6 +63,7 @@ Attachments.update = async (pid, attachments) => {
|
||||
await Promise.all([
|
||||
db.setObjectBulk(bulkOps.hash),
|
||||
db.setObjectField(`post:${pid}`, 'attachments', hashes.join(',')),
|
||||
posts.clearCachedPost(pid),
|
||||
]);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user