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

Verificar se o id de notificação informado é válido #11

Open
dzvid opened this issue Sep 9, 2019 · 0 comments
Open

Verificar se o id de notificação informado é válido #11

dzvid opened this issue Sep 9, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@dzvid
Copy link
Owner

dzvid commented Sep 9, 2019

Em e26339f buscamos pelo id da notificação no mongoDB. Tratar verificacao de id de notificacao invalido/mal formado via try/catch:
e.g: id = 5d76b0a89a64d877d2002376, ok
id = 5d76b0a89a64d877d200237 erro (tem um digito a menos)
O segundo caso é quando o id não existe no mongo e a query retorna null.

@dzvid dzvid added the enhancement New feature or request label Sep 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant