pull/245/head
xwashere 1 year ago
parent b7ddc96b06
commit 3c5094695a
No known key found for this signature in database
GPG Key ID: 042F8BFA1B0EF93B

@ -149,9 +149,9 @@ export class PostgreSQLDatabase implements Database {
return new Promise(async (resolve, reject) => { return new Promise(async (resolve, reject) => {
try { try {
const queries = { const queries = {
assfiles: 'INSERT INTO assfiles (id, data) VALUES ($1, $2)', assfiles: 'INSERT INTO assfiles (id, data) VALUES ($1, $2);',
assusers: 'INSERT INTO assusers (id, data) VALUES ($1, $2)', assusers: 'INSERT INTO assusers (id, data) VALUES ($1, $2);',
asstokens: 'INSERT INTO asstokens (id, data) VALUES ($1, $2)' asstokens: 'INSERT INTO asstokens (id, data) VALUES ($1, $2);'
}; };
let result = await this._client.query(queries[table], [key, data]); 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) => { return new Promise(async (resolve, reject) => {
try { try {
const queries = { const queries = {
assfiles: 'SELECT data FROM assfiles WHERE id = $1::text', assfiles: 'SELECT data FROM assfiles WHERE id = $1::text;',
assusers: 'SELECT data FROM assusers WHERE id = $1::text', assusers: 'SELECT data FROM assusers WHERE id = $1::text;',
asstokens: 'SELECT data FROM asstokens WHERE id = $1::text' asstokens: 'SELECT data FROM asstokens WHERE id = $1::text;'
}; };
let result = await this._client.query(queries[table], [key]); let result = await this._client.query(queries[table], [key]);

Loading…
Cancel
Save