Skip to content

Commit

Permalink
fix: @39bytes' comments
Browse files Browse the repository at this point in the history
  • Loading branch information
LatentDream authored and itsjoeoui committed Apr 30, 2024
1 parent d4bef70 commit aeb7c5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/server/src/db/example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ export async function populateExample(
let didPowerOn = Math.random() < 0.9;
const sessionStartDate =
new Date().getTime() - Math.round(i / 10) * ONE_DAY;
if (didPowerOn) {
if (!didPowerOn) {
let j = 0;
while (!didPowerOn && j < 2) {
yield* (
Expand Down Expand Up @@ -549,7 +549,7 @@ export async function populateExample(
})
).safeUnwrap();

const PartVarUnits = _.times(198, (i) => ({
const partVarUnits = _.times(198, (i) => ({
id: generateDatabaseId("unit"),
serialNumber: `${partVar.partNumber}-S${i + 1}`,
partVariationId: partVar.id,
Expand All @@ -558,7 +558,7 @@ export async function populateExample(

const unitsCreated = await db
.insertInto("unit")
.values([...PartVarUnits])
.values([...partVarUnits])
.returningAll()
.execute();

Expand Down

0 comments on commit aeb7c5c

Please sign in to comment.