shinoka7 6 лет назад
Родитель
Сommit
aa45994744
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src/server/models/attachment.js

+ 1 - 0
src/server/models/attachment.js

@@ -97,6 +97,7 @@ module.exports = function(crowi) {
     // retrieve data from DB to get a completely populated instance
     const attachment = await this.findById(id);
     await fileUploader.deleteFile(attachment);
+    // remove the image attachment from all user(s)
     const User = await crowi.model('User');
     await User.update({ imageAttachment: id }, {
       $set: {