delete expireAt field

v1.18.x
Barış Soner Uşaklı 7 years ago
parent 772872fb03
commit 4dee5a6101

@ -48,7 +48,7 @@ module.exports = {
done = true; done = true;
return next(); return next();
} }
delete item.expireAt;
if (Object.keys(item).length === 3 && item.hasOwnProperty('_key') && item.hasOwnProperty('value')) { if (Object.keys(item).length === 3 && item.hasOwnProperty('_key') && item.hasOwnProperty('value')) {
client.collection('objects').update({ _key: item._key }, { $rename: { value: 'data' } }, next); client.collection('objects').update({ _key: item._key }, { $rename: { value: 'data' } }, next);
} else { } else {

Loading…
Cancel
Save