Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: building selection criteria adjustment #991

Merged
merged 2 commits into from
Dec 12, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions api/src/services/listing.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1210,20 +1210,28 @@ export class ListingService implements OnModuleInit {

const newListingData: ListingCreate = {
...mappedListing,
name: dto.name,
applicationMethods: applicationMethods,
assets: [],
status: ListingsStatusEnum.pending,
listingsBuildingSelectionCriteriaFile:
mappedListing.listingsBuildingSelectionCriteriaFile
mcgarrye marked this conversation as resolved.
Show resolved Hide resolved
? {
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
Loading