MCPcopy Create free account
hub / github.com/async-labs/async / updateUserProfile

Method updateUserProfile

api/server/models/User.ts:736–744  ·  view source on GitHub ↗
({ email, userName, userAvatarUrl })

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected