feat(crm): queue contact imports
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user