1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00

Save is redundant

This commit is contained in:
Zack Scholl 2017-08-16 06:48:51 -07:00
parent bb9d95620c
commit aa1b7a1afb

View File

@ -272,7 +272,6 @@ func handlePageUpdate(c *gin.Context) {
} else {
// Add the page name into the history so it can be retrieved
p.Update(json.FileName)
// time.Sleep(1 * time.Second)
// Add the page text so it can be retried as the latest part of the history
p.Update(json.NewText)
if json.IsEncrypted {
@ -281,7 +280,6 @@ func handlePageUpdate(c *gin.Context) {
if json.IsPrimed {
p.IsPrimedForSelfDestruct = true
}
p.Save()
message = "Saved"
success = true
}