mirror of
https://github.com/aljazceru/signal-cli-rest-api.git
synced 2025-12-19 15:44:28 +01:00
Remove temporary files also on success
* Up to now, the temporary files on the filesystem were only removed when an error occured - resulting in an ever growing docker container. This changeset makes sure that the temporary files also get removed on success. see #26
This commit is contained in:
@@ -168,6 +168,8 @@ func send(c *gin.Context, attachmentTmpDir string, signalCliConfig string, numbe
|
||||
c.JSON(400, gin.H{"error": err.Error()})
|
||||
return
|
||||
}
|
||||
|
||||
cleanupTmpFiles(attachmentTmpPaths)
|
||||
c.JSON(201, nil)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user