aboutsummaryrefslogtreecommitdiffstats
path: root/src/db.ts
diff options
context:
space:
mode:
authorJan Tuomi <jan.tuomi@valuemotive.com>2021-04-19 14:51:34 +0300
committerJan Tuomi <jan.tuomi@valuemotive.com>2021-04-19 14:51:34 +0300
commit7f3a70c396b498a8b10553d11cf78c3ea9a872b1 (patch)
tree29e8063a080b1bb83bd92a5cc8ff8f5365b186e7 /src/db.ts
parent2725e84e199e1d0b5e6ce01e405c035481e49c0d (diff)
Should be ready now
Diffstat (limited to 'src/db.ts')
-rw-r--r--src/db.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/db.ts b/src/db.ts
index b2c9c1e..f649d2d 100644
--- a/src/db.ts
+++ b/src/db.ts
@@ -26,6 +26,7 @@ export const addActiveChat = async (id: number): Promise<QueryResultType<void>>
INSERT INTO active_chats
(id) VALUES
(${id})
+ ON CONFLICT DO NOTHING
`);
export const removeActiveChat = async (id: number): Promise<QueryResultType<void>> =>