Skip to content

Commit

Permalink
fix: for new installations, immediately mark step 6 as completed
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed Apr 25, 2020
1 parent 2dee5e4 commit 62cd762
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ export const install = async (root: any, args: { [key: string]: any }, context:
const { step } = args;

try {
// For new installations, mark step 6 immediately as completed.
// This is because of https://github.com/webiny/webiny-js/pull/792.
// TODO: Remove this upon merging Headless CMS.
if (installation.stepAvailable(6)) {
installation.getStep(6).markAsCompleted();
await installation.save();
}

if (!installation.stepAvailable(step)) {
return new ErrorResponse({
code: "PB_INSTALL_ABORTED",
Expand Down

0 comments on commit 62cd762

Please sign in to comment.