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:
1 parent
71c415e958
commit
e8efc2ee3e
1 file changed
+1
-1
@@ -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