Skip to content

Commit

Permalink
refactor(server-job): attach just the project ID to the merge feeds job
Browse files Browse the repository at this point in the history
  • Loading branch information
landonreed committed Nov 29, 2018
1 parent 7231a95 commit b372303
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import com.conveyal.datatools.manager.models.FeedVersion;
import com.conveyal.datatools.manager.models.Project;
import com.conveyal.datatools.manager.persistence.FeedStore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ArrayNode;
import org.slf4j.Logger;
Expand Down Expand Up @@ -39,7 +40,12 @@
public class MergeProjectFeedsJob extends MonitorableJob {

private static final Logger LOG = LoggerFactory.getLogger(MergeProjectFeedsJob.class);
public final Project project;
private final Project project;

@JsonProperty
public String getProjectId () {
return project.id;
}

public MergeProjectFeedsJob(Project project, String owner) {
super(owner, "Merging project feeds for " + project.name, JobType.MERGE_PROJECT_FEEDS);
Expand Down

0 comments on commit b372303

Please sign in to comment.