feat(import): boosters (#2836)
Reviewed-on: #2836 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
parent
0136e4d152
commit
5772ebe746
@ -6,6 +6,7 @@ import type {
|
||||
} from "../types/inventoryTypes/commonInventoryTypes.ts";
|
||||
import type { IMongoDate } from "../types/commonTypes.ts";
|
||||
import type {
|
||||
IBooster,
|
||||
IDialogueClient,
|
||||
IDialogueDatabase,
|
||||
IDialogueHistoryClient,
|
||||
@ -463,6 +464,9 @@ export const importInventory = (db: TInventoryDatabaseDocument, client: Partial<
|
||||
if (client.Accolades !== undefined) {
|
||||
db.Accolades = client.Accolades;
|
||||
}
|
||||
if (client.Boosters !== undefined) {
|
||||
replaceArray<IBooster>(db.Boosters, client.Boosters);
|
||||
}
|
||||
};
|
||||
|
||||
export const importLoadOutConfig = (client: ILoadoutConfigClient): ILoadoutConfigDatabase => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user