mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ci fix
This commit is contained in:
1 parent
ce79bfab8b
commit
6b92b96225
4 files changed
+40
-2
No files matched your search
@@ -78,8 +78,9 @@ export function getSessionListByUid(uid: number) {
|
||||
return coll.find({ uid, tokenType: TYPE_SESSION }).sort('updateAt', -1).toArray();
|
||||
}
|
||||
|
||||
export function getMostRecentSessionByUid(uid: number) {
|
||||
return coll.findOne({ uid, tokenType: TYPE_SESSION }, { sort: { updateAt: -1 } });
|
||||
export async function getMostRecentSessionByUid(uid: number) {
|
||||
const res = await coll.find({ uid, tokenType: TYPE_SESSION }).sort('updateAt', -1);
|
||||
return res[0];
|
||||
}
|
||||
|
||||
export function delByUid(uid: number) {
|
||||
|
||||
Reference in new issue
Block a user