Check deployment status while creating project with single deployer #15

Merged
nabarun merged 7 commits from sk-check-deployment-status into main 2024-10-25 10:47:05 +00:00
Showing only changes of commit 7a226dfbfd - Show all commits

View File

@ -51,11 +51,8 @@ const Deploy = () => {
return true; return true;
} }
if ( // Not checking for `REMOVED` status as this status is received for a brief period before receiving `DEPLOYED` status
record.lastState === 'CANCELLED' || if (record.lastState === 'CANCELLED' || record.lastState === 'ERROR') {
record.lastState === 'REMOVED' ||
record.lastState === 'ERROR'
) {
return false; return false;
} else { } else {
return true; return true;
@ -67,9 +64,9 @@ const Deploy = () => {
return true; return true;
} }
// Not checking for `REMOVED` status as this status is received for a brief period before receiving `DEPLOYED` status
if ( if (
record.lastState === 'CANCELLED' || record.lastState === 'CANCELLED' ||
record.lastState === 'REMOVED' ||
record.lastState === 'ERROR' || record.lastState === 'ERROR' ||
record.lastState === 'DEPLOYED' record.lastState === 'DEPLOYED'
) { ) {