Skip to content

Commit

Permalink
Updating eventSubscriber to use fileInterface.
Browse files Browse the repository at this point in the history
  • Loading branch information
apathak18 committed Aug 2, 2024
1 parent e378ccf commit 586eb8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ type: module
name: GraphQL File Validate Test
description: Tests file validate on uploads.
package: Testing
hidden: TRUE
hidden: TRUE
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class GraphqlFileValidationTestSubscriber implements EventSubscriberInterface {
* The event.
*/
public function onFileValidation(FileValidationEvent $event): void {
graphql_file_validate('validate', [$event->file->id()]);
graphql_file_validate('validate', [$event->file]);
}

/**
Expand Down

0 comments on commit 586eb8e

Please sign in to comment.