(limit, offset)
| 14 | } |
| 15 | |
| 16 | async getLabels(limit, offset) { |
| 17 | const statement = `SELECT * FROM label LIMIT ?, ?;`; |
| 18 | const [result] = await connection.execute(statement, [offset, limit]); |
| 19 | return result; |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | module.exports = new LabelService(); |