mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-30 00:43:33 -06:00
add comment about side effects
This commit is contained in:
parent
c96ec969de
commit
8d6e49d70f
1 changed files with 9 additions and 0 deletions
|
|
@ -174,6 +174,15 @@ func (a *applicationDB) PutApplication(ctx context.Context, app *gtsmodel.Applic
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// DeleteApplicationByID deletes application with the given ID.
|
||||||
|
//
|
||||||
|
// The function does not delete tokens owned by the application
|
||||||
|
// or update statuses/accounts that used the application, since
|
||||||
|
// the latter can be extremely expensive given the size of the
|
||||||
|
// statuses table.
|
||||||
|
//
|
||||||
|
// Callers to this function should ensure that they do side
|
||||||
|
// effects themselves (if required) before or after calling.
|
||||||
func (a *applicationDB) DeleteApplicationByID(ctx context.Context, id string) error {
|
func (a *applicationDB) DeleteApplicationByID(ctx context.Context, id string) error {
|
||||||
_, err := a.db.NewDelete().
|
_, err := a.db.NewDelete().
|
||||||
Table("applications").
|
Table("applications").
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue