From 69210f6fcb9174107bfafe304c5873e22cc3264c Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 29 Dec 2019 14:18:46 +0100 Subject: [PATCH] datetime is jsonserializable, didn't know that :) --- Models/Position.php | 4 ++-- Models/Unit.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Models/Position.php b/Models/Position.php index 83a0aa4..fca7df8 100644 --- a/Models/Position.php +++ b/Models/Position.php @@ -259,8 +259,8 @@ class Position implements ArrayableInterface, \JsonSerializable 'id' => $this->id, 'name' => $this->name, 'description' => $this->description, - 'department' => $this->department, - 'parent' => $this->parent, + 'department' => $this->department, + 'parent' => $this->parent, ]; } diff --git a/Models/Unit.php b/Models/Unit.php index 9110576..1bac1ba 100644 --- a/Models/Unit.php +++ b/Models/Unit.php @@ -225,7 +225,7 @@ class Unit implements ArrayableInterface, \JsonSerializable 'id' => $this->id, 'name' => $this->name, 'description' => $this->description, - 'parent' => $this->parent, + 'parent' => $this->parent, ]; }