Refactor repository layer (and implement garage)
This commit is contained in:
@@ -6,8 +6,11 @@ export async function saveStocker(
|
||||
w: World,
|
||||
req: SaveStockerRequest
|
||||
): Promise<GenericResponse> {
|
||||
await w.backgrounds().save(req.profileId, req.backgrounds);
|
||||
await w.chara().save(req.profileId, req.chara);
|
||||
await Promise.all([
|
||||
w.backgrounds().saveAll(req.profileId, req.backgrounds),
|
||||
w.chara().save(req.profileId, req.chara),
|
||||
w.car().saveSelection(req.profileId, req.selectedCar),
|
||||
]);
|
||||
|
||||
return { type: "generic_res" };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user