Refactor repository layer (and implement garage)

This commit is contained in:
Tau
2019-11-06 17:28:29 -05:00
parent f224e466c5
commit a4a6550abb
31 changed files with 452 additions and 238 deletions
+3 -3
View File
@@ -23,11 +23,11 @@ export async function saveProfile(
title: req.title,
background: req.background,
}),
w.car().save(req.profileId, req.car),
w.coursePlays().save(req.profileId, req.coursePlays),
w.car().saveCar(req.profileId, req.car),
w.coursePlays().saveAll(req.profileId, req.coursePlays),
w.missions().save(req.profileId, req.missions),
w.story().save(req.profileId, req.story),
w.titles().save(req.profileId, req.titles),
w.titles().saveAll(req.profileId, req.titles),
w.unlocks().save(req.profileId, req.unlocks),
w.settings().save(req.profileId, req.settings),
]);