mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 07:10:53 +00:00
fix compile
This commit is contained in:
parent
2fc8778e53
commit
b81e4171bb
@ -6,10 +6,11 @@ import Name from 'Common/Types/Name';
|
||||
import { DASHBOARD_URL } from 'CommonUI/src/Config';
|
||||
import { JSONObject } from 'Common/Types/JSON';
|
||||
import User from 'Model/Models/User';
|
||||
import JSONFunctions from 'Common/Types/JSONFunctions';
|
||||
|
||||
export default abstract class LoginUtil {
|
||||
public static login(value: JSONObject): void {
|
||||
const user: User = User.fromJSON(
|
||||
const user: User = JSONFunctions.fromJSON(
|
||||
value['user'] as JSONObject,
|
||||
User
|
||||
) as User;
|
||||
|
Loading…
Reference in New Issue
Block a user