Skip to content

Commit

Permalink
state not status
Browse files Browse the repository at this point in the history
  • Loading branch information
drewbo committed Sep 18, 2023
1 parent 68eb61b commit b70611e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/models/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,9 @@ const afterCreate = async (build) => {
};

const afterUpdate = async (build) => {
console.log(build);
// we start certain build tasks on build completion
const { SiteBuildTask } = build.sequelize.models;
if (build.status === 'success') {
if (build.state === States.Success) {
try {
await SiteBuildTask.startBuildTasks({ build, startsWhen: 'complete' });
} catch (err) {
Expand Down

0 comments on commit b70611e

Please sign in to comment.