MCPcopy Create free account
hub / github.com/coderwhy/coderhub / updateAvatarUrlById

Method updateAvatarUrlById

src/service/user.service.js:19–23  ·  view source on GitHub ↗
(avatarUrl, userId)

Source from the content-addressed store, hash-verified

17 }
18
19 async updateAvatarUrlById(avatarUrl, userId) {
20 const statement = `UPDATE user SET avatar_url = ? WHERE id = ?;`;
21 const [result] = await connection.execute(statement, [avatarUrl, userId]);
22 return result;
23 }
24}
25
26module.exports = new UserService();

Callers 1

saveAvatarInfoMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected