Is it possible to make a migration execute asynchronously? Would something like this actually respect the async
and await
statements?
import getAvailableDrives from '@/utils/get-available-drives'
const Store = require('electron-store')
const store = new Store({
migrations: {
'2.0.0': async store => {
const availableDrives = await getAvailableDrives()
const products = store.get('installedProducts', [])
products.forEach(product => {
product.installedOnDrive = availableDrives[1]
})
store.set('installedProducts', products)
}
}
})
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too