Skip to content

Commit

Permalink
fix(config): Handle null property_type_id with default value in deno-kv
Browse files Browse the repository at this point in the history
  • Loading branch information
csulit committed Oct 29, 2024
1 parent 5dbeed4 commit 7dc13ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/deno-kv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ export async function listenQueue(kv: Deno.Kv) {
JSON.stringify(rawProperty.property_features),
JSON.stringify(rawProperty.indoor_features),
JSON.stringify(rawProperty.outdoor_features),
rawProperty.property_type_id,
rawProperty.property_type_id ?? 5, // Default to "Others" property type if null/undefined
rawProperty.address ?? "-",
parseInt(rawProperty.listing_region_id),
parseInt(rawProperty.listing_city_id),
Expand Down

0 comments on commit 7dc13ce

Please sign in to comment.