Skip to content

Commit

Permalink
fix: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bibhuty committed May 22, 2024
1 parent 524674a commit 06afd2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pg/Db.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default class Db {
const { table, verCol, joins } = tableOptions;

const tableInfoSchema = (
await this.query(sqlTag`
await this.query(sqlTag`
SELECT table_schema, table_type
FROM information_schema.tables
WHERE table_name = ${table}
Expand Down Expand Up @@ -143,7 +143,7 @@ export default class Db {
column_name = ${verCol}`)
).rows[0].column_default;

if (!verDefault && tableType!=='VIEW') {
if (!verDefault && tableType !== 'VIEW') {
throw Error(`pg.verCol_without_default ${verCol}`);
}

Expand Down

0 comments on commit 06afd2e

Please sign in to comment.