This commit is contained in:
parent
bde46c4cff
commit
0fc99341b6
1 changed files with 8 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Module dependencies
|
* Module dependencies
|
||||||
*/
|
*/
|
||||||
|
import User from '../models/user';
|
||||||
import serialize from '../serializers/user';
|
import serialize from '../serializers/user';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -18,4 +19,11 @@ module.exports = (params, user, _, isSecure) => new Promise(async (res, rej) =>
|
||||||
detail: true,
|
detail: true,
|
||||||
includeSecrets: isSecure
|
includeSecrets: isSecure
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
// Update lastUsedAt
|
||||||
|
User.update({ _id: user._id }, {
|
||||||
|
$set: {
|
||||||
|
last_used_at: new Date()
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue