idz: Support multiple major versions

Doesn't actually add support for any additional versions, but it
does lay the groundwork.
This commit is contained in:
Tau
2021-02-03 23:43:39 +00:00
committed by Tau
parent 4f7c0145a1
commit 93db3831be
26 changed files with 152 additions and 48 deletions
+2 -1
View File
@@ -7,7 +7,7 @@ export async function createTeam(
w: Repositories,
req: CreateTeamRequest
): Promise<CreateTeamResponse> {
const profileId = await w.profile().find(req.aimeId);
const profileId = await w.profile().find(req.aimeId, req.version);
const prevTeamId = await w.teamMembers().findTeam(profileId);
const now = new Date();
@@ -15,6 +15,7 @@ export async function createTeam(
const teamSpec = {
name: req.teamName,
version: req.version,
nameBg: req.nameBg,
nameFx: 0,
registerTime: now,