fix(lint): final import-type fixes in listings barrel and search result mapper
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -20,5 +20,10 @@ export { GetPendingModerationHandler } from './queries/get-pending-moderation/ge
|
||||
export { GetPriceHistoryQuery } from './queries/get-price-history/get-price-history.query';
|
||||
export { GetPriceHistoryHandler, type PriceHistoryItem } from './queries/get-price-history/get-price-history.handler';
|
||||
|
||||
// Commands — Feature listing
|
||||
export { FeatureListingCommand, type FeaturePackage } from './commands/feature-listing/feature-listing.command';
|
||||
export { FeatureListingHandler, type FeatureListingResult } from './commands/feature-listing/feature-listing.handler';
|
||||
|
||||
// Event Handlers
|
||||
export { ActivateFeaturedListingHandler } from './event-handlers/activate-featured-listing.handler';
|
||||
export { RecordPriceHistoryHandler } from './event-handlers/record-price-history.handler';
|
||||
|
||||
@@ -61,5 +61,6 @@ export function mapRowToListingDocument(row: RawListingRow): ListingDocument {
|
||||
saveCount: row.saveCount ?? 0,
|
||||
projectName: row.projectName,
|
||||
amenities: Array.isArray(row.amenities) ? (row.amenities as string[]) : [],
|
||||
isFeatured: row.featuredUntil && new Date(row.featuredUntil) > new Date() ? 1 : 0,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user