Skip to content

Commit

Permalink
fix(signed-request): trigger metadata insert with default value manually
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Lange <[email protected]>
  • Loading branch information
ArtificialOwl committed Dec 4, 2024
1 parent c77243d commit 2d73743
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/private/Security/Signature/SignatureManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ private function insertSignatory(Signatory $signatory): void {
$time = time();
$signatory->setCreation($time);
$signatory->setLastUpdated($time);
$signatory->setMetadata($signatory->getMetadata()); // trigger insert on field metadata using current or default value
$this->mapper->insert($signatory);
}

Expand Down

0 comments on commit 2d73743

Please sign in to comment.