diff options
Diffstat (limited to 'model')
-rw-r--r-- | model/job.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/model/job.go b/model/job.go index 258fa2bd3..85dfbec92 100644 --- a/model/job.go +++ b/model/job.go @@ -13,6 +13,7 @@ const ( JOB_TYPE_DATA_RETENTION = "data_retention" JOB_TYPE_ELASTICSEARCH_POST_INDEXING = "elasticsearch_post_indexing" JOB_TYPE_ELASTICSEARCH_POST_AGGREGATION = "elasticsearch_post_aggregation" + JOB_TYPE_LDAP_SYNC = "ldap_sync" JOB_STATUS_PENDING = "pending" JOB_STATUS_IN_PROGRESS = "in_progress" @@ -47,6 +48,7 @@ func (j *Job) IsValid() *AppError { case JOB_TYPE_DATA_RETENTION: case JOB_TYPE_ELASTICSEARCH_POST_INDEXING: case JOB_TYPE_ELASTICSEARCH_POST_AGGREGATION: + case JOB_TYPE_LDAP_SYNC: default: return NewAppError("Job.IsValid", "model.job.is_valid.type.app_error", nil, "id="+j.Id, http.StatusBadRequest) } |