diff --git a/lib/post/both/collections.coffee b/lib/post/both/collections.coffee index 5f6bf97..d2a176d 100644 --- a/lib/post/both/collections.coffee +++ b/lib/post/both/collections.coffee @@ -79,6 +79,7 @@ date: type: Date label: '日期' + optional: true autoValue: -> if @isInsert new Date() @@ -89,3 +90,9 @@ optional: true defaultValue: [] + viewCount: + type: Number + label: '阅读数' + defaultValue: 0 + optional: true + diff --git a/modules/journey/main.coffee b/modules/journey/main.coffee index 49a8038..8f3aa1c 100644 --- a/modules/journey/main.coffee +++ b/modules/journey/main.coffee @@ -21,7 +21,7 @@ Journeys.attachSchema new SimpleSchema type: Number label: '级别' optional: true - defaultValue: 1 + defaultValue: 0 min: 0 peopleCount: diff --git a/modules/product/main.coffee b/modules/product/main.coffee index acda867..0ba1adb 100644 --- a/modules/product/main.coffee +++ b/modules/product/main.coffee @@ -8,9 +8,3 @@ Products.attachSchema new SimpleSchema defaultValue: 100 min: 0 optional: true - - viewCount: - type: Number - label: '阅读数' - defaultValue: 0 - optional: true diff --git a/modules/profile/both/collections.coffee b/modules/profile/both/collections.coffee index dd4ca14..2f20323 100644 --- a/modules/profile/both/collections.coffee +++ b/modules/profile/both/collections.coffee @@ -7,15 +7,6 @@ Profiles.attachSchema new SimpleSchema label: '用户' regEx: SimpleSchema.RegEx.Id - picture: - type: String - optional:true - label: '照片' - autoform: - afFieldInput: - type: 'fileUpload' - collection: 'ProfilePictures' - avatar: type: String optional:true