Skip to content

Commit 5c3c180

Browse files
committed
ronzinante. added response to update methods
1 parent 799de89 commit 5c3c180

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

ronzinante/methods/histories.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ func UpdateHistory(c *gin.Context) {
6464
db.Save(&history)
6565

6666
db.Close()
67+
68+
c.JSON(http.StatusOK, gin.H{"message": "History updated successfully!"})
6769
}
6870

6971
func GetHistories(c *gin.Context) {

ronzinante/methods/logs.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ func UpdateLog(c *gin.Context) {
7979
db.Save(&log)
8080

8181
db.Close()
82+
83+
c.JSON(http.StatusOK, gin.H{"message": "Log updated successfully!"})
8284
}
8385

8486
func GetLogs(c *gin.Context) {

ronzinante/methods/sessions.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ func UpdateSession(c *gin.Context) {
7070
db.Save(&session)
7171

7272
db.Close()
73+
74+
c.JSON(http.StatusOK, gin.H{"message": "Session updated successfully!"})
7375
}
7476

7577
func GetSessions(c *gin.Context) {

0 commit comments

Comments
 (0)