1
mirror of https://github.com/thepeacockproject/Peacock synced 2025-02-16 16:34:28 +01:00

Add contract search results from official to controller.fetchedContracts

so they can be played.
This commit is contained in:
Govert de Gans 2024-05-23 04:46:08 +02:00 committed by Reece Dunham
parent 55c85f1789
commit feb807e4b9

View File

@ -92,6 +92,11 @@ export async function officialSearchContract(
filters,
)
for (const contract of resp.data.data.Data.Contracts) {
const contractData = contract.UserCentricContract.Contract
controller.fetchedContracts.set(contractData.Metadata.Id, contractData)
}
preserveContracts(
resp.data.data.Data.Contracts.map(
(c) => c.UserCentricContract.Contract.Metadata.PublicId,