Skip to content

Commit

Permalink
Merge branch 'main' into release/feature-flag-script
Browse files Browse the repository at this point in the history
  • Loading branch information
mcgarrye authored Dec 17, 2024
2 parents 94c7085 + 7cdb90e commit 1364bb1
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 1364bb1

Please sign in to comment.