From b288cbb1f81af8ccc500f3db1cbedd6a3c3ee1e8 Mon Sep 17 00:00:00 2001 From: Tyler-A Date: Mon, 20 Apr 2020 15:56:59 -0600 Subject: [PATCH] Actually update the used quotes DB --- src/api.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api.ts b/src/api.ts index ae0b429..798f490 100644 --- a/src/api.ts +++ b/src/api.ts @@ -7,7 +7,7 @@ import { DISCORD_OAUTH_TOKEN, DISCORD_WEBHOOK_USERNAME } from "./config"; -import { LOAD_USED_QUOTES } from "./database"; +import { LOAD_USED_QUOTES, WRITE_USED_QUOTES } from "./database"; @@ -23,6 +23,7 @@ export const GET_QUOTE = async (count = 1): Promise => { quote = quotes[Math.floor(Math.random() * quotes.length)]; }; used_quotes.push(quote); + WRITE_USED_QUOTES(used_quotes); return quote })