Skip to content

Commit f4fb543

Browse files
committed
fix: dev deploy job
1 parent b9a0771 commit f4fb543

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

infra/global/helpers/datastore/SharedClusterPostgres.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,17 @@ async function withClient<T>(connection: SharedClusterConnection, callback: (cli
9090
async function ensureRole(inputs: SharedClusterRoleInputs): Promise<void> {
9191
await withClient(inputs, async (client) => {
9292
const existingRole = await client.query("select 1 from pg_roles where rolname = $1", [inputs.roleName]);
93-
const replicationClause = inputs.replication ? "REPLICATION" : "NOREPLICATION";
93+
const replicationClause = inputs.replication ? " REPLICATION" : "";
9494

9595
if (existingRole.rowCount && existingRole.rowCount > 0) {
9696
await client.query(
97-
`ALTER ROLE ${quoteIdentifier(inputs.roleName)} WITH LOGIN ${replicationClause} PASSWORD ${quoteLiteral(inputs.rolePassword)}`,
97+
`ALTER ROLE ${quoteIdentifier(inputs.roleName)} WITH LOGIN${replicationClause} PASSWORD ${quoteLiteral(inputs.rolePassword)}`,
9898
);
9999
return;
100100
}
101101

102102
await client.query(
103-
`CREATE ROLE ${quoteIdentifier(inputs.roleName)} WITH LOGIN ${replicationClause} PASSWORD ${quoteLiteral(inputs.rolePassword)}`,
103+
`CREATE ROLE ${quoteIdentifier(inputs.roleName)} WITH LOGIN${replicationClause} PASSWORD ${quoteLiteral(inputs.rolePassword)}`,
104104
);
105105
});
106106
}

0 commit comments

Comments
 (0)