({ email, userName, userAvatarUrl })
| 734 | // both Team Leader and Team Member can use it |
| 735 | // test |
| 736 | public static async updateUserProfile({ email, userName, userAvatarUrl }) { |
| 737 | if (!email) { |
| 738 | throw new Error('Bad data'); |
| 739 | } |
| 740 | |
| 741 | // logger.info(email); |
| 742 | |
| 743 | await this.updateOne({ email }, { userName, userAvatarUrl }, { runValidators: true }); |
| 744 | } |
| 745 | |
| 746 | // test |
| 747 | // public API, make checks |
nothing calls this directly
no outgoing calls
no test coverage detected