Merge pull request #867 from opensupports/fix-system-get-logs
Fixes /system/get-logs by adding getFetchAs
This commit is contained in:
commit
f72f2ac074
|
@ -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 = '';
|
||||
|
|
Loading…
Reference in New Issue