Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in SMS message notifications when status = 'Reaberto' #22

Open
jeanbarroca opened this issue May 25, 2017 · 0 comments
Open

Error in SMS message notifications when status = 'Reaberto' #22

jeanbarroca opened this issue May 25, 2017 · 0 comments
Assignees
Labels

Comments

@jeanbarroca
Copy link
Contributor

If status = 'Reaberto', it should not trigger the status change message that applies to 'Resolvido', 'Invalido' and 'Arquivado'.

Currently, the user gets two SMS:

  • message_id 74990 confirms the status change,
  • message_id 74991 sends a status update with the reopen text, which does not apply.

{
"message_id": "74991",
"parent_message_id": "0",
"smpp_message_id": "368f84a",
"to": "111111111",
"from": "MOPA",
"contents": "Caro municipe, o problema 17218418 tem agora o estado Reaberto. O tchova passou por ai na segunda e passara por ai hoje.. Caso discorde responda N a esta SMS",
"created_at": "2017-05-25 10:01:07",
"updated_at": "2017-05-25 10:01:14",
"message_status": "delivered"
},
{
"message_id": "74990",
"parent_message_id": "0",
"smpp_message_id": "368f72b",
"to": "111111111",
"from": "MOPA",
"contents": "Caro municipe, o seu caso 17218418 foi reaberto",
"created_at": "2017-05-25 10:00:31",
"updated_at": "2017-05-25 10:00:36",
"message_status": "delivered"
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants