mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Merge pull request #905 from Human-Connection/850-api-mapbox-check-place-or-region
region and place is no longer created twice.
This commit is contained in:
commit
97f31abccd
@ -87,6 +87,9 @@ const createOrUpdateLocations = async (userId, locationName, driver) => {
|
||||
}
|
||||
|
||||
const session = driver.session()
|
||||
if (data.place_type.length > 1) {
|
||||
data.id = 'region.' + data.id.split('.')[1]
|
||||
}
|
||||
await createLocation(session, data)
|
||||
|
||||
let parent = data
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user