From f00ecd45960769e13d23e5456f89406aff8a49ce Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Tue, 21 May 2024 21:13:35 +0000 Subject: [PATCH] [ci] format --- packages/db/src/runtime/db-client.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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; }