Skip to content

Commit

Permalink
fix: suspended_until serialized as date instead of datetime (#4169)
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 authored Jan 31, 2025
1 parent 76d8ea5 commit 0b995b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/suspend/src/Api/UserResourceFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function __invoke(): array
Schema\Str::make('suspendMessage')
->writable($canSuspend)
->visible(fn (User $user, Context $context) => $context->getActor()->id === $user->id || $canSuspend($user, $context)),
Schema\Date::make('suspendedUntil')
Schema\DateTime::make('suspendedUntil')
->writable($canSuspend)
->visible(fn (User $user, Context $context) => $context->getActor()->id === $user->id || $canSuspend($user, $context))
->nullable(),
Expand Down

0 comments on commit 0b995b9

Please sign in to comment.