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:
Ho Ngoc Hai
2026-04-16 05:17:54 +07:00
parent e78d706b42
commit 5db3dfbda6
2 changed files with 6 additions and 0 deletions

View File

@@ -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';

View File

@@ -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,
};
}