diff --git a/src/utils/parseResponse.ts b/src/utils/parseResponse.ts index 6ce70d3..a5977ed 100644 --- a/src/utils/parseResponse.ts +++ b/src/utils/parseResponse.ts @@ -21,7 +21,7 @@ export const parseResponse = (type: QueryType, result: QueryResponse): QueryResp return isRowDataPacket(result) ? result[0] : null; case 'scalar': - return isRowDataPacketArray(result) ? result[0][0] : null; + return isRowDataPacketArray(result) ? Object.values(result[0])[0] : null; default: return result || null;