Temporary reshuffeling to fix API

This commit is contained in:
James Cole
2021-03-06 07:20:49 +01:00
parent 0afebb26e0
commit 1c661a86b6
85 changed files with 684 additions and 296 deletions

View File

@@ -60,10 +60,10 @@ class AttachmentTransformer extends AbstractTransformer
$this->repository->setUser($attachment->user);
return [
'id' => (int)$attachment->id,
'id' => (string)$attachment->id,
'created_at' => $attachment->created_at->toAtomString(),
'updated_at' => $attachment->updated_at->toAtomString(),
'attachable_id' => (int) $attachment->attachable_id,
'attachable_id' => (string)$attachment->attachable_id,
'attachable_type' => str_replace('FireflyIII\\Models\\', '', $attachment->attachable_type),
'md5' => $attachment->md5,
'filename' => $attachment->filename,