Skip to content

Commit 7696606

Browse files
committed
mysql2 query returns [results, fields], so only return fields
1 parent c153239 commit 7696606

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cloud-sql/mysql/mysql2/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ const httpGet = app.get('/', async (req, res) => {
170170

171171
// Run queries concurrently, and wait for them to complete
172172
// This is faster than await-ing each query object as it is created
173-
const recentVotes = await recentVotesQuery;
173+
const [recentVotes] = await recentVotesQuery; // Return only the results, not the field metadata
174174
const [tabsVotes] = await tabsQuery;
175175
const [spacesVotes] = await spacesQuery;
176176

0 commit comments

Comments
 (0)