Skip to content

Commit

Permalink
fix: double quotes in queries
Browse files Browse the repository at this point in the history
  • Loading branch information
faridevnz committed Oct 29, 2024
1 parent 269a7eb commit a5229ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cmd/migrate/deploy/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const chooseTenantPrompt = async (): Promise<string[]> => {

const sequelize = new Sequelize(config.centralDatabaseUrl);
const queryExecution = await sequelize.query(
`SELECT * FROM ${config.tenantTable.name};`,
`SELECT * FROM "${config.tenantTable.name}";`,
{ logging: false }
);
const queryResult = queryExecution[0];
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/migrate/dev/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const chooseTenantPrompt = async (): Promise<string[]> => {

const sequelize = new Sequelize(config.centralDatabaseUrl);
const queryExecution = await sequelize.query(
`SELECT * FROM ${config.tenantTable.name};`,
`SELECT * FROM "${config.tenantTable.name}";`,
{ logging: false }
);
const queryResult = queryExecution[0];
Expand Down

0 comments on commit a5229ce

Please sign in to comment.