wip create working(?)

This commit is contained in:
Tau
2019-11-06 17:28:30 -05:00
parent 968e98fbb4
commit a5827da590
21 changed files with 214 additions and 96 deletions
+12 -8
View File
@@ -6,17 +6,21 @@ export async function saveProfile(
w: Repositories,
req: SaveProfileRequest
): Promise<GenericResponse> {
const now = new Date();
const profile = await w.profile().load(req.profileId);
const chara = await w.chara().load(req.profileId);
await w.profile().save({
...profile,
lv: req.lv,
exp: req.exp,
fame: req.fame,
dpoint: req.dpoint,
mileage: req.mileage,
});
await w.profile().save(
{
...profile,
lv: req.lv,
exp: req.exp,
fame: req.fame,
dpoint: req.dpoint,
mileage: req.mileage,
},
now
);
await w.chara().save(req.profileId, {
...chara,