We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d5f347 commit 5a19133Copy full SHA for 5a19133
api/cosy/delete.go
@@ -6,9 +6,9 @@ import (
6
"net/http"
7
)
8
9
-func (c *Ctx[T]) PermanentlyDelete() *Ctx[T] {
+func (c *Ctx[T]) PermanentlyDelete() {
10
c.permanentlyDelete = true
11
- return c
+ c.Destroy()
12
}
13
14
func (c *Ctx[T]) Destroy() {
api/notification/notification.go
@@ -31,8 +31,7 @@ func GetList(c *gin.Context) {
31
32
func Destroy(c *gin.Context) {
33
cosy.Core[model.Notification](c).
34
- PermanentlyDelete().
35
- Destroy()
+ PermanentlyDelete()
36
37
38
func DestroyAll(c *gin.Context) {
0 commit comments