@waline/vercel 1.31.4 → 1.31.5
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.
package/package.json
CHANGED
|
@@ -405,11 +405,15 @@ module.exports = class extends Base {
|
|
|
405
405
|
ret.map(async (item) => {
|
|
406
406
|
const _oldStatus = item.get('status');
|
|
407
407
|
|
|
408
|
+
var newData
|
|
408
409
|
if (think.isFunction(data)) {
|
|
409
|
-
|
|
410
|
-
}
|
|
411
|
-
|
|
410
|
+
newData = data(item.toJSON())
|
|
411
|
+
}
|
|
412
|
+
if ('updatedAt' in newData) {
|
|
413
|
+
delete newData.updatedAt
|
|
412
414
|
}
|
|
415
|
+
item.set(newData)
|
|
416
|
+
|
|
413
417
|
const _newStatus = item.get('status');
|
|
414
418
|
|
|
415
419
|
if (_newStatus && _oldStatus !== _newStatus) {
|