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

Metadata in list notification api is getting data from 'directus_presets' instead on 'directus_notifications' #13659

Closed
tenebrius opened this issue Jun 1, 2022 · 0 comments · Fixed by #13660
Labels

Comments

@tenebrius
Copy link
Contributor

tenebrius commented Jun 1, 2022

Describe the Bug

The meta total_count data from /notifications api is not correct. This is because in the code the metadata is being gathered from 'directus_preset' instead.

const meta = await metaService.getMetaForQuery('directus_presets', req.sanitizedQuery);

To Reproduce

  1. Create 10 notifications
  2. Call /notifications with meta=total_count
  3. total_count will not be 10

Errors Shown

No response

What version of Directus are you using?

9.11.1

What version of Node.js are you using?

16.X.X

What database are you using?

Postgres

What browser are you using?

Chrome

How are you deploying Directus?

locally

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants