(avatarUrl, userId)
| 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 | |
| 26 | module.exports = new UserService(); |