mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Add database optimise task (#3929)
* Add database optimise task * Wrap errors * US internationalisation --------- Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
@@ -208,3 +208,8 @@ func (r *mutationResolver) AnonymiseDatabase(ctx context.Context, input Anonymis
|
||||
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (r *mutationResolver) OptimiseDatabase(ctx context.Context) (string, error) {
|
||||
jobID := manager.GetInstance().OptimiseDatabase(ctx)
|
||||
return strconv.Itoa(jobID), nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user