core&ui: bug fix

This commit is contained in:
undefined committed 2021-09-25 21:47:05 +08:00
1 parent 42f41c4f61
commit e4c2f309c4
6 files changed
+9 -26

No files matched your search

+1 -1
View File
@@ -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;