~changes Activity#bulkCreate to use transaction from options by default~
fixes the order of arguments for sequelize#transaction
This fixes the issue with import breaking with the repository_id foreign key constraint error.
Activity#bulkCreate was running in different isolation scope from the import job because it was spawning new transaction.
This PR:
Activity#bulkCreate
to use transaction from options by default~sequelize#transaction
This fixes the issue with import breaking with the
repository_id
foreign key constraint error.Activity#bulkCreate
was running in different isolation scope from the import job because it was spawning new transaction.