ushahidi / tenfour-mobile

TenFour mobile app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scheduled check-ins aren't getting scheduled, they get sent right away.

AmTryingMyBest opened this issue · comments

Expected Behaviour

After creating a scheduled check-in, the check-in should appear under the Scheduled Tab, and be sent when scheduled as scheduled.

Actual Behaviour

Scheduled check-in is sent immediately on creation. It then appears under Sent instead of Scheduled.

Steps to Reproduce

  • Create a check-in.
  • Schedule a date/time in the future(under When field) when it will be sent.
  • Frequency should be Once.
  • Note the When section says when the Check-In should be sent.
  • Hit Send.
  • The Check-In should appear under Scheduled and not get sent till the scheduled time arrives. It is instead sent immediately and appears under Sent.

Environment

  • www.tenfour.org
  • app.tenfour.org
  • staging.tenfour.org
  • dev.tenfour.org
  • localhost:8100
  • iOS App (live)
  • iOS App (testflight)
  • Android App (live)
  • Android App (beta)

I also reproduced this by selecting 'once'
Screenshot 2019-05-07 at 15.42.22.png

thanks Eriol :)
found the issue in the code, sending a fix a little later when I do some testing