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

fix: Abrigos com capacidade igual a 0 não estão sendo exibidos na busca. #128

Conversation

kevinpiske
Copy link
Contributor

Com a remoção dessa alteração do PR #105, gerou-se um novo problema. Os abrigos com o campo capacity igual a zero não terão status e consequentemente não aparecerão nas buscas. Isso é um problema grave, visto que há muitos assim na base e que agora eles não estão aparecendo para a população. Peço que reconsidere essa alteração.

@@ -54,7 +54,7 @@ class ShelterSearch {
ShelterStatus,
Prisma.ShelterWhereInput['capacity'] | null
> = {
waiting: null,
waiting: null || 0,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isto aqui não faz sentido, null || 0 é o mesmo que 0

@kevinpiske kevinpiske marked this pull request as draft May 16, 2024 21:50
@kevinpiske kevinpiske closed this May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants