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(database): admin create schema return type regression #289

Merged
merged 3 commits into from
Aug 25, 2022
Merged

Conversation

kon14
Copy link
Contributor

@kon14 kon14 commented Aug 25, 2022

Fixes Database's create schema admin route returning incorrect fields.

I'm not marking this as a Breaking Change as it restores the advertised return signature, which is mostly a superset of the regressed one, except for the schemaOptions -> modelOptions field name.

This also fixes a couple of promises being awaited twice.

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Build-related changes
  • Other (please describe)

Does this PR introduce a breaking change?

  • Yes
  • No

The PR fulfills these requirements:

  • It's submitted to the main branch
  • When resolving a specific issue, it's referenced in the PR's description (e.g. fix #xxx, where "xxx" is the issue number)

…sion

This is technically a breaking change for anyone expecting the
previously returned fields, but I'm not marking it as such due to it being
a regression and route doc already advertising the currently returned fields.

Fix returns a superset of previously returned fields,
except for schemaOptions -> modelOptions.
@kkopanidis kkopanidis merged commit 4f7979c into main Aug 25, 2022
@kkopanidis kkopanidis deleted the db-fixes branch August 25, 2022 10:47
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.

2 participants