🐛 Fix analyze now query issue
This commit is contained in:
parent
78e554577e
commit
2bd8dc17d1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user