🐛 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
|
metadata.Pool = &pool
|
||||||
|
|
||||||
if !c.QueryBool("analyzeNow", false) {
|
if c.QueryBool("analyzeNow", false) {
|
||||||
services.AnalyzeAttachment(metadata)
|
services.AnalyzeAttachment(metadata)
|
||||||
} else {
|
} else {
|
||||||
services.PublishAnalyzeTask(metadata)
|
services.PublishAnalyzeTask(metadata)
|
||||||
|
@ -130,7 +130,7 @@ func uploadFragmentChunk(c *fiber.Ctx) error {
|
|||||||
return fiber.NewError(fiber.StatusInternalServerError, err.Error())
|
return fiber.NewError(fiber.StatusInternalServerError, err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
if !c.QueryBool("analyzeNow", false) {
|
if c.QueryBool("analyzeNow", false) {
|
||||||
services.AnalyzeAttachment(attachment)
|
services.AnalyzeAttachment(attachment)
|
||||||
} else {
|
} else {
|
||||||
services.PublishAnalyzeTask(attachment)
|
services.PublishAnalyzeTask(attachment)
|
||||||
|
Loading…
Reference in New Issue
Block a user