Skip to content

Commit

Permalink
fix: building selection criteria adjustment (#4505)
Browse files Browse the repository at this point in the history
982
  • Loading branch information
mcgarrye authored Dec 10, 2024
1 parent 2769691 commit 0673c76
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions api/src/services/listing.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1022,20 +1022,28 @@ export class ListingService implements OnModuleInit {

const newListingData: ListingCreate = {
...mappedListing,
name: dto.name,
applicationMethods: applicationMethods,
assets: [],
status: ListingsStatusEnum.pending,
listingsBuildingSelectionCriteriaFile:
mappedListing.listingsBuildingSelectionCriteriaFile
? {
fileId:
mappedListing.listingsBuildingSelectionCriteriaFile.fileId,
label: mappedListing.listingsBuildingSelectionCriteriaFile.label,
}
: undefined,
listingEvents: listingEvents,
listingImages: listingImages,
listingMultiselectQuestions:
storedListing.listingMultiselectQuestions?.map((question) => ({
id: question.multiselectQuestionId,
ordinal: question.ordinal,
})),
listingImages: listingImages,
applicationMethods: applicationMethods,
lotteryLastRunAt: undefined,
lotteryLastPublishedAt: undefined,
lotteryStatus: undefined,
name: dto.name,
status: ListingsStatusEnum.pending,
};

const res = await this.create(
Expand Down

0 comments on commit 0673c76

Please sign in to comment.