Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return rest.data.results.map(obj => new BaseRecord(obj, this))
}
async findOne(id) {
const rest = await axios.get(`https://api.shopjam.com.au/api/v4/locations/postcodes/${id}`)
return new BaseRecord(rest.data.postcode, this)
}
}