🐛 Fix analyze now query issue

This commit is contained in:
LittleSheep 2024-12-29 23:19:26 +08:00
parent 78e554577e
commit 2bd8dc17d1
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)