Skip to content

Commit 6468c67

Browse files
Update query-sql-database.mjs
1 parent a0128d1 commit 6468c67

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

components/database/actions/query-sql-database/query-sql-database.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ export default {
2020
async run({ $ }) {
2121
const args = this.postgresql.executeQueryAdapter(this.sql);
2222
const data = await this.postgresql.executeQuery(args);
23-
const rowLabel = data.length === 1 ? "row" : "rows";
23+
const rowLabel = data.length === 1
24+
? "row"
25+
: "rows";
2426
$.export("$summary", `Returned ${data.length} ${rowLabel}`);
2527
return data;
2628
},

0 commit comments

Comments
 (0)