chuni: implement UserCharge APIs, add table for purchased tickets

This commit is contained in:
5ebef5658c5fcb6f5a62e75318bdc7fad90b21bc
2020-08-02 11:24:21 -04:00
committed by Tau
parent a8539b475e
commit 6c22c4287e
16 changed files with 185 additions and 12 deletions
+5
View File
@@ -13,6 +13,7 @@ import { readUserActivity } from "../proto/userActivity";
import { readUserDataEx } from "../proto/userDataEx";
import { readUserDuelList } from "../proto/userDuelList";
import { readUserPlaylog } from "../proto/userPlaylog";
import { readUserCharge } from "../proto/userCharge";
import { readUserCourse } from "../proto/userCourse";
// It shouldn't need to be said really, but seeing as this message (A) requires
@@ -67,6 +68,10 @@ export default async function upsertUserAll(
await rep.userPlaylog().save(profileId, readUserPlaylog(item));
}
for (const item of payload.userChargeList || []) {
await rep.userCharge().save(profileId, readUserCharge(item));
}
for (const item of payload.userCourseList || []) {
await rep.userCourse().save(profileId, readUserCourse(item));
}