Add async to group deletion database upgrade

This commit is contained in:
Mitchell McCaffrey 2021-08-22 12:38:12 +10:00
parent 2d37b7abd0
commit a9909e77d7

View File

@ -813,7 +813,7 @@ export const versions: Record<number, VersionCallback> = {
},
// v1.9.0 - Remove map and token group in respective tables
35(v, onUpgrade) {
v.stores({}).upgrade((tx) => {
v.stores({}).upgrade(async (tx) => {
onUpgrade?.(35);
tx.table("maps")
.toCollection()
@ -850,7 +850,7 @@ export const versions: Record<number, VersionCallback> = {
},
// v1.10.0 - Delete groups again
38(v, onUpgrade) {
v.stores({}).upgrade((tx) => {
v.stores({}).upgrade(async (tx) => {
onUpgrade?.(38);
tx.table("maps")
.toCollection()