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
+6 -1
View File
@@ -6,7 +6,12 @@ export async function saveTimeAttack(
w: Repositories,
req: SaveTimeAttackRequest
): Promise<SaveTimeAttackResponse> {
await w.timeAttack().save(req.profileId, req.payload);
// Override client time since we might be doing some maintenance window
// avoidance time warping stuff
await w
.timeAttack()
.save(req.profileId, { ...req.payload, timestamp: new Date() });
return {
type: "save_time_attack_res",