Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- async function brands(ctx) {
- const { rows } = await db.query('SELECT name FROM county.brands')
- ctx.body = {
- brands: rows
- }
- }
- async function marks(ctx) {
- const { rows } = await db.query('SELECT product_type, mark_type, owner FROM county.marks')
- ctx.body = {
- marks: rows
- }
- }
Add Comment
Please, Sign In to add comment