mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
fix(schemas): use pool.query to tolerate empty query results (#4241)
This commit is contained in:
parent
7814f098a8
commit
24612e2706
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ type CloudConnectionConfig = {
|
|||
|
||||
const alteration: AlterationScript = {
|
||||
up: async (pool) => {
|
||||
const rows = await pool.many<Application>(
|
||||
const { rows } = await pool.query<Application>(
|
||||
sql`select * from applications where type = ${ApplicationType.MachineToMachine} and tenant_id = ${adminTenantId} and name = ${cloudServiceApplicationName}`
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue