fix: remove unsupported sync job type from job handler
Remove "sync" from the list of valid job types to align with the removal of JobTypeSync from the Worker service.
This commit is contained in:
@@ -38,7 +38,7 @@ func (h *JobsHandler) CreateJob(c echo.Context) error {
|
||||
// Validate job type
|
||||
var jobType services.JobType
|
||||
switch req.Type {
|
||||
case "import", "convert", "thumbnails", "backup", "analytics", "sync":
|
||||
case "import", "convert", "thumbnails", "backup", "analytics":
|
||||
jobType = services.JobType(req.Type)
|
||||
default:
|
||||
return c.JSON(http.StatusBadRequest, map[string]string{
|
||||
|
||||
Reference in New Issue
Block a user