Added groups to database populate

This commit is contained in:
Mitchell McCaffrey 2021-05-13 16:27:21 +10:00
parent 954089fbe5
commit 2ac3fcf5fb

View File

@ -20,6 +20,10 @@ function populate(db) {
db.table("states").bulkAdd(mapStates); db.table("states").bulkAdd(mapStates);
const tokens = getDefaultTokens(userId); const tokens = getDefaultTokens(userId);
db.table("tokens").bulkAdd(tokens); db.table("tokens").bulkAdd(tokens);
db.table("groups").bulkAdd([
{ id: "maps", data: maps.map((map) => map.id) },
{ id: "tokens", data: tokens.map((token) => token.id) },
]);
}); });
} }