show newlines in action res and longer timeout

This commit is contained in:
Matt Hill
2021-03-03 08:54:52 -07:00
committed by Aiden McClelland
parent d9894d4082
commit e69a936fb8
3 changed files with 36 additions and 27 deletions

View File

@@ -274,7 +274,7 @@ export class LiveApiService extends ApiService {
id: uuid.v4(),
method: s.id,
}
return this.authRequest({ method: Method.POST, url: `/apps/${appId}/actions`, data })
return this.authRequest({ method: Method.POST, url: `/apps/${appId}/actions`, data, readTimeout: 300000 })
}
async refreshLAN(): Promise<Unit> {

View File

@@ -235,11 +235,11 @@ export class MockApiService extends ApiService {
return {
jsonrpc: '2.0',
id: '0',
// result: 'Congrats! you did ' + action.name,
error: {
code: 1,
message: 'woooo that was bad bad bad',
},
result: 'Congrats! you did\na new line: ' + action.name,
// error: {
// code: 1,
// message: 'woooo that was bad bad bad',
// },
}
}