diff --git a/api/cosy/delete.go b/api/cosy/delete.go index 8870b6e0..78bb5a5e 100644 --- a/api/cosy/delete.go +++ b/api/cosy/delete.go @@ -6,9 +6,9 @@ import ( "net/http" ) -func (c *Ctx[T]) PermanentlyDelete() *Ctx[T] { +func (c *Ctx[T]) PermanentlyDelete() { c.permanentlyDelete = true - return c + c.Destroy() } func (c *Ctx[T]) Destroy() { diff --git a/api/notification/notification.go b/api/notification/notification.go index 73cfb647..952a6f02 100644 --- a/api/notification/notification.go +++ b/api/notification/notification.go @@ -31,8 +31,7 @@ func GetList(c *gin.Context) { func Destroy(c *gin.Context) { cosy.Core[model.Notification](c). - PermanentlyDelete(). - Destroy() + PermanentlyDelete() } func DestroyAll(c *gin.Context) {