Fix
This commit is contained in:
parent
69527cd4b9
commit
b034542536
|
@ -29,7 +29,7 @@ async function run() {
|
|||
let i = 0
|
||||
const students = await Promise.all(
|
||||
Array.from({ length: STUDENT_COUNT }).map(async () => {
|
||||
await createRow(apiKey, app._id, studentsTable, {
|
||||
const row = await createRow(apiKey, app._id, studentsTable, {
|
||||
"Student Number": (++studentNumber).toString(),
|
||||
"First Name": generator.first(),
|
||||
"Last Name": generator.last(),
|
||||
|
@ -45,6 +45,7 @@ async function run() {
|
|||
(Date.now() - start) / 1000
|
||||
}s)`
|
||||
)
|
||||
return row
|
||||
})
|
||||
)
|
||||
|
||||
|
@ -62,7 +63,7 @@ async function run() {
|
|||
i = 0
|
||||
const subjects = await Promise.all(
|
||||
Array.from({ length: SUBJECT_COUNT }).map(async () => {
|
||||
await createRow(apiKey, app._id, subjectTable, {
|
||||
const row = await createRow(apiKey, app._id, subjectTable, {
|
||||
Name: generator.profession(),
|
||||
})
|
||||
console.log(
|
||||
|
@ -70,6 +71,7 @@ async function run() {
|
|||
(Date.now() - start) / 1000
|
||||
}s)`
|
||||
)
|
||||
return row
|
||||
})
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue