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

fixed incorrect audity activity on document create #5718

Conversation

faisalill
Copy link
Contributor

What does this PR do?

Changed the ->label('audits.resouces' from

App::post('/v1/databases/:databaseId/collections/:collectionId/documents')
    ....
    ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}')

To

App::post('/v1/databases/:databaseId/collections/:collectionId/documents')
...
 ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}/document/{response.$id}')

Test Plan

docker compose exec appwrite test /usr/src/code/tests/e2e/Services/Databases returned no errors.

Related PRs and Issues

#4436

Checklist

@faisalill
Copy link
Contributor Author

@abnegate

Copy link
Contributor

@abnegate abnegate left a comment

Choose a reason for hiding this comment

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

Looks good, just waiting on tests to finish running 👍

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