broker direcrtory renewed, imageservice updated, demo data
This commit is contained in:
@@ -21,9 +21,9 @@ import { BusinessListing } from "../common-models/src/main.model"
|
||||
})
|
||||
const listings:Array<BusinessListing> = await response.json();
|
||||
for (const listing of listings) {
|
||||
const option = selectOptions.locations.find(l=>l.name.toLowerCase()===listing.location.toLowerCase());
|
||||
const option = selectOptions.locations.find(l=>l.name.toLowerCase()===listing.state.toLowerCase());
|
||||
if (option){
|
||||
listing.location=option.value
|
||||
listing.state=option.value
|
||||
}
|
||||
const response = await fetch(`http://localhost:3000/bizmatch/listings/${listing.id}`, {
|
||||
method: 'PUT',
|
||||
|
||||
Reference in New Issue
Block a user