Yuki Takei 7 лет назад
Родитель
Сommit
5206cc9a6b

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

@@ -21,7 +21,7 @@ module.exports = function(crowi) {
   attachmentSchema = new mongoose.Schema({
     page: { type: ObjectId, ref: 'Page', index: true },
     creator: { type: ObjectId, ref: 'User', index: true  },
-    filePath: { type: String },   // DEPRECATED: remains for backward compatibility for v3.3.5 or below
+    filePath: { type: String },   // DEPRECATED: remains for backward compatibility for v3.3.7 or below
     fileName: { type: String, required: true },
     originalName: { type: String },
     fileFormat: { type: String, required: true },

+ 1 - 1
src/server/models/user.js

@@ -212,7 +212,7 @@ module.exports = function(crowi) {
   };
 
   userSchema.methods.deleteImage = async function() {
-    // the 'image' field became DEPRECATED in v3.3.7
+    // the 'image' field became DEPRECATED in v3.3.8
     this.image = undefined;
 
     if (this.imageAttachment != null) {

+ 1 - 1
src/server/service/file-uploader/aws.js

@@ -37,7 +37,7 @@ module.exports = function(crowi) {
   }
 
   function getFilePathOnStorage(attachment) {
-    if (attachment.filePath != null) {  // backward compatibility for v3.3.5 or below
+    if (attachment.filePath != null) {  // backward compatibility for v3.3.7 or below
       return attachment.filePath;
     }
 

+ 1 - 1
src/server/service/file-uploader/local.js

@@ -13,7 +13,7 @@ module.exports = function(crowi) {
 
   function getFilePathOnStorage(attachment) {
     let filePath;
-    if (attachment.filePath != null) {  // backward compatibility for v3.3.5 or below
+    if (attachment.filePath != null) {  // backward compatibility for v3.3.7 or below
       filePath = path.posix.join(basePath, attachment.filePath);
     }
     else {