egg-born-module-a-base-sync
Advanced tools
Comparing version 4.8.33 to 4.8.34
@@ -89,3 +89,8 @@ module.exports = app => { | ||
async write() { | ||
const options = { ignoreValidate: false }; | ||
const _options = this.ctx.request.body.options; | ||
const saveDraftOnly = _options && _options.saveDraftOnly; | ||
const options = { | ||
ignoreValidate: false, | ||
saveDraftOnly, | ||
}; | ||
await this.ctx.service.atom.write({ | ||
@@ -92,0 +97,0 @@ key: this.ctx.request.body.key, |
@@ -10,5 +10,9 @@ export default { | ||
} | ||
// options | ||
const options = { | ||
saveDraftOnly: item.atomStage === 0, | ||
}; | ||
// write | ||
const key = { atomId: item.atomId, itemId: item.itemId }; | ||
await ctx.$api.post('/a/base/atom/write', { key, item }); | ||
await ctx.$api.post('/a/base/atom/write', { key, item, options }); | ||
ctx.$meta.eventHub.$emit('atom:action', { key, action, actionSource: ctx }); | ||
@@ -15,0 +19,0 @@ // toast |
{ | ||
"name": "egg-born-module-a-base-sync", | ||
"version": "4.8.33", | ||
"version": "4.8.34", | ||
"title": "Base", | ||
@@ -5,0 +5,0 @@ "eggBornModule": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3632660
59933