Fixes /system/get-logs by adding getFetchAs

This commit is contained in:
Maxi Redigonda 2020-08-05 16:34:27 -03:00
parent 4970b18c2d
commit 01a494ac23

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) {
$session = Session::getInstance();
$authorName = '';