Open dzbrozek opened 2 years ago
The issue still remains. Here is a small sample code:
const { TRANSACTION_COLLECTION, ORGANIZATION_COLLECTION, ESTABLISHMENT_COLLECTION, ARTWORK_COLLECTION, CLIENT_COLLECTION, EVALUATION_COLLECTION, USER_COLLECTION } = require('./globals')
const { chunk } = require('lodash')
module.exports.migrate = async ({ firestore }) => {
const users = await firestore.collection(USER_COLLECTION).get()
chunk(users.docs, 500).map(userDocs =>
userDocs.map(user => {
const newEstablishmentRef = firestore.collection(ESTABLISHMENT_COLLECTION).doc()
})
)
}
I removed all the unnecessary code to replicate the bug
I have a problem with
forceWait
. When I run migrations withforceWait
fireway runs only the first migration and stops working after that without writing migration result to firestore. WithoutforceWait
I works as expected but I get a lot of warnings. Any idea what's going on?Example migration: