feat(crm): queue contact imports

This commit is contained in:
2026-06-07 02:17:50 +08:00
parent b16f922daa
commit 3a71001cb9
6 changed files with 186 additions and 20 deletions
+1 -1
View File
@@ -932,7 +932,7 @@ func (h *ContactHandler) Import(c *gin.Context) {
file, _, fileErr = c.Request.FormFile("file")
}
if fileErr != nil {
c.JSON(http.StatusUnprocessableEntity, gin.H{"error": "failed to import contacts"})
c.JSON(http.StatusUnprocessableEntity, gin.H{"error": "File is blank"})
return
}
defer file.Close()