diff --git a/packages/db/src/runtime/db-client.ts b/packages/db/src/runtime/db-client.ts index 3d62eba065..8c33b20391 100644 --- a/packages/db/src/runtime/db-client.ts +++ b/packages/db/src/runtime/db-client.ts @@ -78,14 +78,14 @@ export function createRemoteDatabaseClient(appToken: string, remoteDbURL: string // Using `db.run()` drizzle massages the rows into an object. // So in order to make dev/prod consistent, we need to do the same here. // This creates an object and loops over each row replacing it with the object. - for(let i = 0; i < remoteResult.rows.length; i++) { - let row = remoteResult.rows[i]; - let item: Record = {}; - remoteResult.columns.forEach((col, index) => { - item[col] = row[index]; - }); - (remoteResult as any).rows[i] = item; - } + for (let i = 0; i < remoteResult.rows.length; i++) { + let row = remoteResult.rows[i]; + let item: Record = {}; + remoteResult.columns.forEach((col, index) => { + item[col] = row[index]; + }); + (remoteResult as any).rows[i] = item; + } return remoteResult; }