idz: Add stamps to SaveStockerRequest
This commit is contained in:
@@ -12,6 +12,9 @@ export async function saveStocker(
|
|||||||
w.backgrounds().saveAll(profileId, req.backgrounds),
|
w.backgrounds().saveAll(profileId, req.backgrounds),
|
||||||
w.chara().save(profileId, req.chara),
|
w.chara().save(profileId, req.chara),
|
||||||
w.car().saveSelection(profileId, req.selectedCar),
|
w.car().saveSelection(profileId, req.selectedCar),
|
||||||
|
req.selectedStamps &&
|
||||||
|
w.stamps().saveSelection(profileId, req.selectedStamps),
|
||||||
|
req.stamps && w.stamps().saveAll(profileId, req.stamps),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return { type: "generic_res" };
|
return { type: "generic_res" };
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { BackgroundCode } from "../model/base";
|
import { BackgroundCode, StampCode } from "../model/base";
|
||||||
import { CarSelector } from "../model/car";
|
import { CarSelector } from "../model/car";
|
||||||
import { Chara } from "../model/chara";
|
import { Chara } from "../model/chara";
|
||||||
|
import { SelectedStamps } from "../model/stamps";
|
||||||
import { AimeId } from "../../../model";
|
import { AimeId } from "../../../model";
|
||||||
|
|
||||||
export interface SaveStockerRequest {
|
export interface SaveStockerRequest {
|
||||||
@@ -10,4 +11,6 @@ export interface SaveStockerRequest {
|
|||||||
selectedCar: CarSelector;
|
selectedCar: CarSelector;
|
||||||
backgrounds: Set<BackgroundCode>;
|
backgrounds: Set<BackgroundCode>;
|
||||||
chara: Chara;
|
chara: Chara;
|
||||||
|
selectedStamps?: SelectedStamps;
|
||||||
|
stamps?: Set<StampCode>;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user