mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 09:38:19 +08:00
core: fix api tests
This commit is contained in:
3 files changed
+18
-6
No files matched your search
@@ -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)),
|
||||
|
||||
Reference in new issue
Block a user