From 3c5094695a76950a1ec0abcdc75753517655f63c Mon Sep 17 00:00:00 2001 From: xwashere Date: Thu, 26 Oct 2023 15:01:51 -0400 Subject: [PATCH] semicolons --- backend/sql/postgres.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/backend/sql/postgres.ts b/backend/sql/postgres.ts index a92703f..7b879f7 100644 --- a/backend/sql/postgres.ts +++ b/backend/sql/postgres.ts @@ -149,9 +149,9 @@ export class PostgreSQLDatabase implements Database { return new Promise(async (resolve, reject) => { try { const queries = { - assfiles: 'INSERT INTO assfiles (id, data) VALUES ($1, $2)', - assusers: 'INSERT INTO assusers (id, data) VALUES ($1, $2)', - asstokens: 'INSERT INTO asstokens (id, data) VALUES ($1, $2)' + assfiles: 'INSERT INTO assfiles (id, data) VALUES ($1, $2);', + assusers: 'INSERT INTO assusers (id, data) VALUES ($1, $2);', + asstokens: 'INSERT INTO asstokens (id, data) VALUES ($1, $2);' }; let result = await this._client.query(queries[table], [key, data]); @@ -167,9 +167,9 @@ export class PostgreSQLDatabase implements Database { return new Promise(async (resolve, reject) => { try { const queries = { - assfiles: 'SELECT data FROM assfiles WHERE id = $1::text', - assusers: 'SELECT data FROM assusers WHERE id = $1::text', - asstokens: 'SELECT data FROM asstokens WHERE id = $1::text' + assfiles: 'SELECT data FROM assfiles WHERE id = $1::text;', + assusers: 'SELECT data FROM assusers WHERE id = $1::text;', + asstokens: 'SELECT data FROM asstokens WHERE id = $1::text;' }; let result = await this._client.query(queries[table], [key]);