Umbau auf postgres 2. step
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import yargs from 'yargs'
|
||||
import fs from 'fs-extra';
|
||||
import { hideBin } from 'yargs/helpers'
|
||||
import { BusinessListing } from "../common-models/src/main.model"
|
||||
|
||||
//const argv = yargs(hideBin(process.argv)).argv
|
||||
|
||||
// if (!argv.userId){
|
||||
@@ -19,7 +19,7 @@ import { BusinessListing } from "../common-models/src/main.model"
|
||||
method: 'GET',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
})
|
||||
const listings:Array<BusinessListing> = await response.json();
|
||||
const listings:Array<any> = await response.json();
|
||||
for (const listing of listings) {
|
||||
const option = selectOptions.locations.find(l=>l.name.toLowerCase()===listing.state.toLowerCase());
|
||||
if (option){
|
||||
|
||||
Reference in New Issue
Block a user