From 01a494ac233009f7bb63c40d3028a5e7b02bb22d Mon Sep 17 00:00:00 2001 From: Maxi Redigonda Date: Wed, 5 Aug 2020 16:34:27 -0300 Subject: [PATCH] Fixes /system/get-logs by adding getFetchAs --- server/models/Log.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/models/Log.php b/server/models/Log.php index 88eabd62..b21e0a47 100755 --- a/server/models/Log.php +++ b/server/models/Log.php @@ -27,6 +27,13 @@ class Log extends DataStore { ]; } + public static function getFetchAs() { + return [ + 'authorUser' => 'user', + 'authorStaff' => 'staff', + ]; + } + public static function createLog($type, $to, $author = null) { $session = Session::getInstance(); $authorName = '';