@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@waline/vercel",
3
- "version": "1.31.4",
3
+ "version": "1.31.5",
4
4
  "description": "vercel server for waline comment system",
5
5
  "keywords": [
6
6
  "waline",
@@ -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
- item.set(data(item.toJSON()));
410
- } else {
411
- item.set(data);
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) {