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:
2026-03-05 20:26:35 -05:00
parent 71c415e958
commit e8efc2ee3e
+1 -1
View File
@@ -38,7 +38,7 @@ func (h *JobsHandler) CreateJob(c echo.Context) error {
// Validate job type // Validate job type
var jobType services.JobType var jobType services.JobType
switch req.Type { switch req.Type {
case "import", "convert", "thumbnails", "backup", "analytics", "sync": case "import", "convert", "thumbnails", "backup", "analytics":
jobType = services.JobType(req.Type) jobType = services.JobType(req.Type)
default: default:
return c.JSON(http.StatusBadRequest, map[string]string{ return c.JSON(http.StatusBadRequest, map[string]string{