mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-27 07:44:29 +02:00
Fixes /system/get-logs by adding getFetchAs
This commit is contained in:
parent
4970b18c2d
commit
01a494ac23
@ -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 = '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user