(userId, content)
| 10 | |
| 11 | class MomentService { |
| 12 | async create(userId, content) { |
| 13 | const statement = `INSERT INTO moment (content, user_id) VALUES (?, ?);`; |
| 14 | const [result] = await connection.execute(statement, [content, userId]); |
| 15 | return result; |
| 16 | } |
| 17 | |
| 18 | async getMomentById(id) { |
| 19 | const statement = ` |
nothing calls this directly
no outgoing calls
no test coverage detected