mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 09:45:36 +08:00
修复登录日志保存
This commit is contained in:
1 parent
4244502949
commit
3822c37fa0
1 file changed
+1
-1
@@ -217,7 +217,7 @@ export default class UserService {
|
|||||||
(a, b) => b.info!.timestamp! - a.info!.timestamp!,
|
(a, b) => b.info!.timestamp! - a.info!.timestamp!,
|
||||||
);
|
);
|
||||||
if (result.length > 100) {
|
if (result.length > 100) {
|
||||||
const ids = result.slice(0, result.length - 100).map((x) => x.id!);
|
const ids = result.slice(100).map((x) => x.id!);
|
||||||
await SystemModel.destroy({
|
await SystemModel.destroy({
|
||||||
where: { id: ids },
|
where: { id: ids },
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user