aboutsummaryrefslogtreecommitdiff
path: root/bot/src/api/routes/quotes.js
diff options
context:
space:
mode:
authorAndrew Lee <andrew@alee14.me>2025-03-30 17:39:45 -0400
committerAndrew Lee <andrew@alee14.me>2025-03-30 17:39:45 -0400
commit48d906bfd8fade21c13e73ea703ecb699a19c533 (patch)
tree8551fd01f1cc146d1f2d5d3afaa75b257e833060 /bot/src/api/routes/quotes.js
parentd37cc8c56cbf8c9ffe7023c671abe0d579ea875d (diff)
downloadAleeBot-48d906bfd8fade21c13e73ea703ecb699a19c533.tar.gz
AleeBot-48d906bfd8fade21c13e73ea703ecb699a19c533.tar.bz2
AleeBot-48d906bfd8fade21c13e73ea703ecb699a19c533.zip
More eslint styling
Diffstat (limited to 'bot/src/api/routes/quotes.js')
-rw-r--r--bot/src/api/routes/quotes.js6
1 files changed, 3 insertions, 3 deletions
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) => {