(domainId: string, uid: number, params: any)
| 258 | } |
| 259 | |
| 260 | static async setUserInDomain(domainId: string, uid: number, params: any) { |
| 261 | const udoc = await UserModel.getById(domainId, uid); |
| 262 | deleteUserCache(udoc); |
| 263 | return await collUser.updateOne({ domainId, uid }, { $set: params }, { upsert: true }); |
| 264 | } |
| 265 | |
| 266 | static async updateUserInDomain(domainId: string, uid: number, update: any) { |
| 267 | const udoc = await UserModel.getById(domainId, uid); |