feat: rollback coolify

This commit is contained in:
Andras Bacsai
2022-11-10 13:57:34 +01:00
parent e94f450bf0
commit bd4ce3ac45
4 changed files with 77 additions and 12 deletions

View File

@@ -16,9 +16,11 @@
updateStatus.loading = true;
try {
if (dev) {
await asyncSleep(4000);
localStorage.setItem('lastVersion', $appSession.version);
await asyncSleep(1000);
return window.location.reload();
} else {
localStorage.setItem('lastVersion', $appSession.version);
await post(`/update`, { type: 'update', latestVersion });
addToast({
message: 'Update completed.<br><br>Waiting for the new version to start...',