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
|
// 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{
|
||||||
|
|||||||
Reference in new issue
Block a user