mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core&ui: bug fix
This commit is contained in:
1 parent
42f41c4f61
commit
e4c2f309c4
6 files changed
+9
-26
No files matched your search
@@ -206,7 +206,7 @@ class UserModel {
|
||||
|
||||
@ArgMethod
|
||||
static async setById(uid: number, $set?: Partial<Udoc>, $unset?: Value<Partial<Udoc>, ''>) {
|
||||
if (uid < 1000) return null;
|
||||
if (uid < -999) return null;
|
||||
const op: any = {};
|
||||
if ($set && Object.keys($set).length) op.$set = $set;
|
||||
if ($unset && Object.keys($unset).length) op.$unset = $unset;
|
||||
|
||||
Reference in new issue
Block a user