"``update teacher and student seed scripts to dynamically loop through row_array and um_row_array instead of fixed iterations``"

This commit is contained in:
louiscklaw
2025-05-13 13:27:48 +08:00
parent a441e3e52d
commit 3560ea79fc
2 changed files with 2 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ module.exports = ($app) => {
let users_collection = $app.findCollectionByNameOrId("users"); let users_collection = $app.findCollectionByNameOrId("users");
let user_metas_collection = $app.findCollectionByNameOrId("UserMetas"); let user_metas_collection = $app.findCollectionByNameOrId("UserMetas");
for (let i = 0; i < 1; i++) { for (let i = 0; i < row_array.length; i++) {
let user = row_array[i]; let user = row_array[i];
let um = um_row_array[i]; let um = um_row_array[i];

View File

@@ -32,7 +32,7 @@ module.exports = ($app) => {
let users_collection = $app.findCollectionByNameOrId("users"); let users_collection = $app.findCollectionByNameOrId("users");
let user_metas_collection = $app.findCollectionByNameOrId("UserMetas"); let user_metas_collection = $app.findCollectionByNameOrId("UserMetas");
for (let i = 0; i < 1; i++) { for (let i = 0; i < row_array.length; i++) {
let user = row_array[i]; let user = row_array[i];
let um = um_row_array[i]; let um = um_row_array[i];