Merge pull request #867 from opensupports/fix-system-get-logs

Fixes /system/get-logs by adding getFetchAs
This commit is contained in:
Maximiliano Redigonda 2020-08-07 17:25:25 -03:00 committed by GitHub
commit f72f2ac074
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -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) { public static function createLog($type, $to, $author = null) {
$session = Session::getInstance(); $session = Session::getInstance();
$authorName = ''; $authorName = '';