core: fix api tests

This commit is contained in:
undefined committed 2025-05-07 18:46:12 +08:00
1 parent 5b3bcd1134
commit 2894d1e2ce
3 files changed
+18 -6

No files matched your search

+1 -1
View File
@@ -546,7 +546,7 @@ const UserApi = {
if (arg.id) return user.getById(arg.domainId, arg.id);
if (arg.mail) return user.getByEmail(arg.domainId, arg.mail);
if (arg.uname) return user.getByUname(arg.domainId, arg.uname);
return c.user;
return user.getById(arg.domainId, c.user._id);
}),
users: Query(Schema.object({
ids: Schema.array(Schema.number().step(1)),