From 48d906bfd8fade21c13e73ea703ecb699a19c533 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 30 Mar 2025 17:39:45 -0400 Subject: More eslint styling --- bot/src/api/routes/quotes.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bot/src/api/routes/quotes.js') diff --git a/bot/src/api/routes/quotes.js b/bot/src/api/routes/quotes.js index af61174..4c584a9 100644 --- a/bot/src/api/routes/quotes.js +++ b/bot/src/api/routes/quotes.js @@ -45,10 +45,10 @@ export function quoteRouter(client) { submitter: quote.submitterID }); - await pendingQuote.destroy({ where: {id} }); + await pendingQuote.destroy({ where: { id } }); res.status(200).send({ message: 'Quote approved' }); } else { - res.status(404).send({ message: 'Quote not found '}); + res.status(404).send({ message: 'Quote not found ' }); } } catch (error) { console.error('Error approving quote:', error); @@ -61,7 +61,7 @@ export function quoteRouter(client) { try { const quote = await pendingQuote.findByPk(id); if (quote) { - await pendingQuote.destroy({ where: {id} }); + await pendingQuote.destroy({ where: { id } }); if (!req.body.silent) { client.users.fetch(quote.submitterID).then((user) => { -- cgit v1.2.3