Refactor repository layer (and implement garage)
This commit is contained in:
@@ -12,12 +12,13 @@ export async function loadProfile(
|
||||
const profile = await w.profile().loadByAimeId(req.aimeId);
|
||||
const settings = await w.settings().load(profile.id);
|
||||
const chara = await w.chara().load(profile.id);
|
||||
const titles = await w.titles().load(profile.id);
|
||||
const coursePlays = await w.coursePlays().load(profile.id);
|
||||
const titles = await w.titles().loadAll(profile.id);
|
||||
const coursePlays = await w.coursePlays().loadAll(profile.id);
|
||||
const missions = await w.missions().load(profile.id);
|
||||
const car = await w.car().load(profile.id);
|
||||
const car = await w.car().loadSelectedCar(profile.id);
|
||||
const carCount = await w.car().countCars(profile.id);
|
||||
const story = await w.story().load(profile.id);
|
||||
const timeAttack = await w.timeAttack().load(profile.id);
|
||||
const timeAttack = await w.timeAttack().loadAll(profile.id);
|
||||
const unlocks = await w.unlocks().load(profile.id);
|
||||
|
||||
return {
|
||||
@@ -37,6 +38,7 @@ export async function loadProfile(
|
||||
missions,
|
||||
timeAttack,
|
||||
car,
|
||||
carCount,
|
||||
story,
|
||||
unlocks,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user