(domainId: string, uid: number, update: any)
| 264 | } |
| 265 | |
| 266 | static async updateUserInDomain(domainId: string, uid: number, update: any) { |
| 267 | const udoc = await UserModel.getById(domainId, uid); |
| 268 | deleteUserCache(udoc); |
| 269 | return await collUser.updateOne({ domainId, uid }, update, { upsert: true }); |
| 270 | } |
| 271 | |
| 272 | @ArgMethod |
| 273 | static async incUserInDomain(domainId: string, uid: number, field: string, n: number = 1) { |
no test coverage detected