Skip to content

Remoção do campo reino_id de modelos de taxonomia - #128

Merged
edvaldoszy merged 2 commits into
developmentfrom
127-rem-reino_id
Aug 7, 2025
Merged

edvaldoszy merged 2 commits into
developmentfrom
127-rem-reino_id

Conversation

@MatCoitinho

Copy link
Copy Markdown
Contributor
  • Remove a dependência de reino_id de todos os modelos, menos do modelo de Família.

@MatCoitinho MatCoitinho self-assigned this Aug 5, 2025
@MatCoitinho MatCoitinho linked an issue Aug 5, 2025 that may be closed by this pull request
return familiaEncontrada;
})
.then(familia => Subfamilia.create({ nome,
.then(Subfamilia.create({ nome,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@MatCoitinho aqui você ainda precisa manter a função, mesmo que você não faça uso do parâmetro, no caso

Suggested change
.then(Subfamilia.create({ nome,
.then(() => Subfamilia.create({ nome,

return familiaEncontrada;
})
.then(familia => Genero.create({ nome,
.then(Genero.create({ nome,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@MatCoitinho aqui você ainda precisa manter a função, mesmo que você não faça uso do parâmetro, no caso

Suggested change
.then(Genero.create({ nome,
.then(() => Genero.create({ nome,

@edvaldoszy
edvaldoszy merged commit 787283a into development Aug 7, 2025
1 check passed
@edvaldoszy
edvaldoszy deleted the 127-rem-reino_id branch August 7, 2025 17:19
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.

[API] Remoção de dependências de reino_id nos modelos

2 participants