fix api call error

This commit is contained in:
Alireza Ahmadi
2024-07-23 16:24:56 +02:00
parent eef7e200ba
commit 5cc3791f79
+1 -1
View File
@@ -57,7 +57,7 @@ function _respToMsg(resp: any): Msg {
} }
function isMsg(obj: any): obj is Msg { function isMsg(obj: any): obj is Msg {
return 'success' in obj && 'msg' in obj && 'obj' in obj return Object.hasOwn(obj,'success') && Object.hasOwn(obj,'msg') && Object.hasOwn(obj, 'obj')
} }
const HttpUtils = { const HttpUtils = {