Skip to content

Commit

Permalink
fix: switch to UserSerializer for followedUsers relationship (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideIadeluca authored Jul 22, 2024
1 parent c1bda56 commit 43dff68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
->modelPolicy(User::class, Access\UserPolicy::class),

(new Extend\ApiSerializer(CurrentUserSerializer::class))
->hasMany('followedUsers', BasicUserSerializer::class),
->hasMany('followedUsers', UserSerializer::class),

(new Extend\ApiSerializer(BasicUserSerializer::class))
->attributes(Api\AddBasicUserAttributes::class),
Expand Down

0 comments on commit 43dff68

Please sign in to comment.