🐛 Fix analyze now query issue
This commit is contained in:
		| @@ -66,7 +66,7 @@ func createAttachmentDirectly(c *fiber.Ctx) error { | ||||
|  | ||||
| 	metadata.Pool = &pool | ||||
|  | ||||
| 	if !c.QueryBool("analyzeNow", false) { | ||||
| 	if c.QueryBool("analyzeNow", false) { | ||||
| 		services.AnalyzeAttachment(metadata) | ||||
| 	} else { | ||||
| 		services.PublishAnalyzeTask(metadata) | ||||
|   | ||||
| @@ -130,7 +130,7 @@ func uploadFragmentChunk(c *fiber.Ctx) error { | ||||
| 		return fiber.NewError(fiber.StatusInternalServerError, err.Error()) | ||||
| 	} | ||||
|  | ||||
| 	if !c.QueryBool("analyzeNow", false) { | ||||
| 	if c.QueryBool("analyzeNow", false) { | ||||
| 		services.AnalyzeAttachment(attachment) | ||||
| 	} else { | ||||
| 		services.PublishAnalyzeTask(attachment) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user