| 1 | const connection = require('../app/database'); |
| 2 | |
| 3 | class AuthService { |
| 4 | async checkResource(tableName, id, userId) { |
| 5 | const statement = `SELECT * FROM ${tableName} WHERE id = ? AND user_id = ?;`; |
| 6 | const [result] = await connection.execute(statement, [id, userId]); |
nothing calls this directly
no outgoing calls
no test coverage detected