Skip to content

Commit

Permalink
DocumentTransformEvent: expose nullable "deleteAt" field for files
Browse files Browse the repository at this point in the history
  • Loading branch information
lazka committed Oct 29, 2024
1 parent fe265a8 commit 9172899
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Blob/BlobService.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ private static function fileDataToJson(FileData $fileData): array
'mimeType' => $fileData->getMimeType(),
'dateCreated' => $fileData->getDateCreated()->format(\DateTime::ATOM),
'dateModified' => $fileData->getDateModified()->format(\DateTime::ATOM),
'deleteAt' => $fileData->getDeleteAt()?->format(\DateTime::ATOM),
'metadata' => $fileData->getMetadata(),
];
}
Expand Down
1 change: 1 addition & 0 deletions src/TypesenseSync/TypesenseSync.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ public function fileDataToPartialDocuments(array $fileData): array
'mimeType' => $fileData['mimeType'],
'dateCreated' => $fileData['dateCreated'],
'dateModified' => $fileData['dateModified'],
'deleteAt' => $fileData['deleteAt'],
'metadata' => $metadata,
];

Expand Down

0 comments on commit 9172899

Please sign in to comment.