Skip to content

Commit fab2213

Browse files
committed
Upade lu even if request has no_meta flag.
1 parent 3686f47 commit fab2213

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

api/utils/common.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2715,6 +2715,13 @@ common.updateAppUser = function(params, update, no_meta, callback) {
27152715
}
27162716
}
27172717
}
2718+
else {
2719+
if (!update.$set) {
2720+
update.$set = {};
2721+
}
2722+
update.$set.no_meta = {"r": params.qstring.no_meta, "c": no_meta};
2723+
update.$set.lu = new Date();
2724+
}
27182725

27192726
if (params.qstring.device_id && user.did !== params.qstring.device_id) {
27202727
if (!update.$set) {

0 commit comments

Comments
 (0)