idz: Remove profile ext id

Turns out (while researching team creation) the profile ext id
is just the aime id. After creating a team a profile discovery
request is immediately issued with the "profile id" in the field
that holds the aime id during initial profile load.
This commit is contained in:
Tau
2019-11-06 17:28:30 -05:00
parent 7c96253160
commit c2b0bcabc4
70 changed files with 238 additions and 341 deletions
+4 -3
View File
@@ -13,9 +13,10 @@ export async function saveTimeAttack(
// 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() });
const now = new Date();
const profileId = await w.profile().find(req.aimeId);
await w.timeAttack().save(profileId, { ...req.payload, timestamp: now });
}
return {