mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
http service object fix
This commit is contained in:
committed by
Aiden McClelland
parent
08e845228f
commit
b19bde96cd
@@ -471,6 +471,7 @@ export class MockApiService extends ApiService {
|
|||||||
value: PackageState.Removing,
|
value: PackageState.Removing,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
const res = await this.http.rpcRequest<WithRevision<null>>({ method: 'db.patch', params: { patch } })
|
const res = await this.http.rpcRequest<WithRevision<null>>({ method: 'db.patch', params: { patch } })
|
||||||
setTimeout(async () => {
|
setTimeout(async () => {
|
||||||
const patch = [
|
const patch = [
|
||||||
@@ -481,6 +482,7 @@ export class MockApiService extends ApiService {
|
|||||||
]
|
]
|
||||||
this.http.rpcRequest<WithRevision<null>>({ method: 'db.patch', params: { patch } })
|
this.http.rpcRequest<WithRevision<null>>({ method: 'db.patch', params: { patch } })
|
||||||
}, this.revertTime)
|
}, this.revertTime)
|
||||||
|
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ export class HttpService {
|
|||||||
this.fullUrl + httpOpts.url :
|
this.fullUrl + httpOpts.url :
|
||||||
httpOpts.url
|
httpOpts.url
|
||||||
|
|
||||||
Object.keys(httpOpts.params).forEach(key => {
|
Object.keys(httpOpts.params || { }).forEach(key => {
|
||||||
if (httpOpts.params[key] === undefined) {
|
if (httpOpts.params[key] === undefined) {
|
||||||
delete httpOpts.params[key]
|
delete httpOpts.params[key]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user