Commit 97647fc1 authored by qinhaitao's avatar qinhaitao

feat: 🎸 用户更新时间

parent ca89e37c
......@@ -239,7 +239,9 @@ var UserService = /** @class */ (function (_super) {
isFollow = data.isFollow;
today = utils_1.getToday();
projection = {
$set: {},
$set: {
updateTime: Date.now()
},
$push: {},
$inc: (_a = {},
_a["login." + today] = 1,
......
This diff is collapsed.
......@@ -135,7 +135,9 @@ class UserService extends BaseService {
const today = getToday()
let projection = {
$set: {},
$set: {
updateTime: Date.now()
},
$push: {},
$inc: {
[`login.${today}`]: 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment