Skip to content

Commit a6ce436

Browse files
authored
refactor: comment out database cleanup operations in seed function (#531)
1 parent 45b1276 commit a6ce436

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

db/seed.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ async function seed() {
5454
};
5555

5656
//* cleanup the existing database (if any)
57-
await client.delete(sensor).catch(() => {});
58-
await client.delete(device).catch(() => {});
59-
await client.delete(user).catch((err) => console.log("DELETE users", err));
60-
await client.delete(measurement).catch(() => {});
57+
// await client.delete(sensor).catch(() => {});
58+
// await client.delete(device).catch(() => {});
59+
// await client.delete(user).catch((err) => console.log("DELETE users", err));
60+
// await client.delete(measurement).catch(() => {});
6161

6262
//* create intial user
6363
await client.insert(user).values({

0 commit comments

Comments
 (0)