mango-cms 0.2.31 → 0.2.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,7 +3,7 @@ let { PlainText, Select, Timestamp, Relationship } = fields
|
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
5
|
|
|
6
|
-
title: PlainText({ required: true }),
|
|
6
|
+
// title: PlainText({ required: true }),
|
|
7
7
|
author: Relationship({ collection: 'member', single: true, computed: (doc, req) => [req?.member?.id] || [] }),
|
|
8
8
|
editId: { computed: (doc, req) => req?.member?.id || null },
|
|
9
9
|
created: { computed: doc => doc.created || new Date, type: 'Float' },
|
package/default/package.json
CHANGED
|
@@ -160,7 +160,7 @@ const Mango = collections.reduce((a, c) => {
|
|
|
160
160
|
})
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
let save = (data, options = {}) => {
|
|
163
|
+
let save = (data, options = { bypassLocal: true }) => {
|
|
164
164
|
if (!options.bypassLocal) return localDB.save(save, data, options)
|
|
165
165
|
else return mangoSave(data, options)
|
|
166
166
|
}
|