Skip to content

Commit 340a345

Browse files
committed
chore: correct data types in database autofill
1 parent 8664eb1 commit 340a345

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

dev-demo/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ if (fileURLToPath(import.meta.url) === path.resolve(process.argv[1])) {
207207
engine_power: engine_type === 'electric' ? null : Math.floor(Math.random() * 400) + 100,
208208
production_year: Math.floor(Math.random() * 31) + 1990,
209209
listed: i % 2 == 0,
210-
mileage: `${Math.floor(Math.random() * 200000)}`,
210+
mileage: Math.floor(Math.random() * 200000),
211211
body_type: BODY_TYPES[Math.floor(Math.random() * BODY_TYPES.length)].value,
212212
});
213213
};
@@ -223,7 +223,7 @@ if (fileURLToPath(import.meta.url) === path.resolve(process.argv[1])) {
223223
engine_power: engine_type === 'electric' ? null : Math.floor(Math.random() * 400) + 100,
224224
production_year: Math.floor(Math.random() * 31) + 1990,
225225
listed: i % 2 == 0,
226-
mileage: `${Math.floor(Math.random() * 200000)}`,
226+
mileage: Math.floor(Math.random() * 200000),
227227
body_type: BODY_TYPES[Math.floor(Math.random() * BODY_TYPES.length)].value,
228228
});
229229
};
@@ -240,7 +240,7 @@ if (fileURLToPath(import.meta.url) === path.resolve(process.argv[1])) {
240240
engine_power: engine_type === 'electric' ? null : Math.floor(Math.random() * 400) + 100,
241241
production_year: Math.floor(Math.random() * 31) + 1990,
242242
listed: i % 2 == 0,
243-
mileage: `${Math.floor(Math.random() * 200000)}`,
243+
mileage: Math.floor(Math.random() * 200000),
244244
body_type: BODY_TYPES[Math.floor(Math.random() * BODY_TYPES.length)].value,
245245
});
246246
};
@@ -257,7 +257,7 @@ if (fileURLToPath(import.meta.url) === path.resolve(process.argv[1])) {
257257
engine_power: engine_type === 'electric' ? null : Math.floor(Math.random() * 400) + 100,
258258
production_year: Math.floor(Math.random() * 31) + 1990,
259259
listed: i % 2 == 0,
260-
mileage: `${Math.floor(Math.random() * 200000)}`,
260+
mileage: Math.floor(Math.random() * 200000),
261261
body_type: BODY_TYPES[Math.floor(Math.random() * BODY_TYPES.length)].value,
262262
});
263263
};
@@ -274,7 +274,7 @@ if (fileURLToPath(import.meta.url) === path.resolve(process.argv[1])) {
274274
engine_power: engine_type === 'electric' ? null : Math.floor(Math.random() * 400) + 100,
275275
production_year: Math.floor(Math.random() * 31) + 1990,
276276
listed: i % 2 == 0,
277-
mileage: `${Math.floor(Math.random() * 200000)}`,
277+
mileage: Math.floor(Math.random() * 200000),
278278
body_type: BODY_TYPES[Math.floor(Math.random() * BODY_TYPES.length)].value,
279279
});
280280
};

0 commit comments

Comments
 (0)