mirror of
https://github.com/maierfelix/POGOserver.git
synced 2026-08-20 01:14:01 -05:00
Bugfix - Issue #177
- Fixed imageUrl for PokeStops get saved in database (obj.image -> obj.imageUrl)
This commit is contained in:
@@ -127,7 +127,7 @@ export function insertPokestopIntoDatabase(obj) {
|
||||
let lng = obj.longitude;
|
||||
let name = obj.name;
|
||||
let desc = obj.description;
|
||||
let img = obj.image || "";
|
||||
let img = obj.imageUrl || "";
|
||||
let exp = obj.experience || 500;
|
||||
let query = `INSERT INTO ${Cell.getFortTable(obj.type)} SET cell_id=?, latitude=?, longitude=?, name=?, description=?, image_url=?, experience=?, rewards=?`;
|
||||
return new Promise((resolve) => {
|
||||
@@ -177,4 +177,4 @@ export function insertSpawnIntoDatabase(obj) {
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user