Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
XWasHere committed Oct 26, 2023
1 parent b7ddc96 commit 3c50946
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions backend/sql/postgres.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand All @@ -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]);
Expand Down

0 comments on commit 3c50946

Please sign in to comment.