Skip to content
Discussion options

You must be logged in to vote

I looked up the principle of foreach and used for in instead, and now the problem is solved.

There is my code:

    const chunkApps: any[] = chunk(apps, 1000)
    for (const iterator of chunkApps) {
      await Game.updateOrCreateMany('appid', iterator)
    }

    await Database.manager.closeAll()

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AGDholo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant