Skip to content

Commit

Permalink
fix notSent undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
nicokant committed Oct 29, 2023
1 parent 439abdc commit 54b6f0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion AllNeededDirectories/bicycle-osm-app/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ async function handleChangesets(route){
if(answers.length!=0){
console.log(answers)
const notSent = await UpdateOrImport(route, answers);
if(notSent.length != 0){
console.log(notSent);
if(notSent && notSent.length != 0) {
const data = HandleNotSentData(notSent)
//console.log(data.toUpdate);
await SendWithMyAccount(route, data.sendWithMyAccount)
Expand Down

0 comments on commit 54b6f0d

Please sign in to comment.