Commit 97647fc1 authored by qinhaitao's avatar qinhaitao

feat: 🎸 用户更新时间

parent ca89e37c
...@@ -239,7 +239,9 @@ var UserService = /** @class */ (function (_super) { ...@@ -239,7 +239,9 @@ var UserService = /** @class */ (function (_super) {
isFollow = data.isFollow; isFollow = data.isFollow;
today = utils_1.getToday(); today = utils_1.getToday();
projection = { projection = {
$set: {}, $set: {
updateTime: Date.now()
},
$push: {}, $push: {},
$inc: (_a = {}, $inc: (_a = {},
_a["login." + today] = 1, _a["login." + today] = 1,
......
This diff is collapsed.
...@@ -135,7 +135,9 @@ class UserService extends BaseService { ...@@ -135,7 +135,9 @@ class UserService extends BaseService {
const today = getToday() const today = getToday()
let projection = { let projection = {
$set: {}, $set: {
updateTime: Date.now()
},
$push: {}, $push: {},
$inc: { $inc: {
[`login.${today}`]: 1 [`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