Hotfixes and CI/CD
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 3m51s
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 3m51s
This commit is contained in:
@@ -315,14 +315,14 @@ const Sessions = () => {
|
||||
|
||||
const result = await withTimeout(
|
||||
sessionService.createSession(newSessionData),
|
||||
15000,
|
||||
'Request timed out while creating session. Check DB/network and try again.'
|
||||
30000,
|
||||
'Request timed out while creating session. Please check your network connection and try again.'
|
||||
);
|
||||
if (result.success) {
|
||||
await withTimeout(
|
||||
refreshSessions(),
|
||||
15000,
|
||||
'Request timed out while refreshing sessions after create.'
|
||||
30000,
|
||||
'Request timed out while refreshing sessions. Please check your network connection and try again.'
|
||||
);
|
||||
if (editForm.makeActive && result.data) {
|
||||
makeSessionActive(toActiveSessionShape(result.data));
|
||||
@@ -349,8 +349,8 @@ const Sessions = () => {
|
||||
end_time: null,
|
||||
pauses: normalizedPausesForDb
|
||||
}),
|
||||
15000,
|
||||
'Request timed out while updating current session.'
|
||||
30000,
|
||||
'Request timed out while updating current session. Please check your network connection and try again.'
|
||||
);
|
||||
await withTimeout(
|
||||
refreshSessions(),
|
||||
@@ -379,14 +379,14 @@ const Sessions = () => {
|
||||
|
||||
const result = await withTimeout(
|
||||
sessionService.updateSession(editForm.id, updateData),
|
||||
15000,
|
||||
'Request timed out while updating session.'
|
||||
30000,
|
||||
'Request timed out while updating session. Please check your network connection and try again.'
|
||||
);
|
||||
if (result.success) {
|
||||
await withTimeout(
|
||||
refreshSessions(),
|
||||
15000,
|
||||
'Request timed out while refreshing sessions after update.'
|
||||
30000,
|
||||
'Request timed out while refreshing sessions. Please check your network connection and try again.'
|
||||
);
|
||||
if (editForm.makeActive && result.data) {
|
||||
makeSessionActive(toActiveSessionShape(result.data));
|
||||
|
||||
Reference in New Issue
Block a user