Deletion of notification services.
This commit is contained in:
parent
c7ad2aa1b6
commit
a736ae60af
10 changed files with 74 additions and 9 deletions
|
|
@ -116,6 +116,22 @@ func UpdateNotificationService(svc notification.Service) (created bool, err erro
|
|||
}
|
||||
return
|
||||
} // }}}
|
||||
func DeleteNotificationService(prio int) (err error) { // {{{
|
||||
_, err = service.Db.Conn.Exec(
|
||||
`
|
||||
DELETE FROM public.notification
|
||||
WHERE
|
||||
prio = $1
|
||||
|
||||
`,
|
||||
prio,
|
||||
)
|
||||
|
||||
if err != nil {
|
||||
return werr.Wrap(err).WithData(struct{ Prio int }{prio})
|
||||
}
|
||||
return
|
||||
} // }}}
|
||||
|
||||
func AcknowledgeNotification(uuid string) (err error) { // {{{
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue