chore: add vacuum functions

This commit is contained in:
Steven
2023-07-09 01:37:20 +08:00
parent d82d3701dd
commit 0b659ba124
5 changed files with 59 additions and 0 deletions

View File

@ -303,6 +303,9 @@ func (s *APIV1Service) composeShortcut(ctx context.Context, shortcut *Shortcut)
if err != nil {
return nil, errors.Wrap(err, "Failed to get creator")
}
if user == nil {
return nil, errors.New("Creator not found")
}
shortcut.Creator = convertUserFromStore(user)
activityList, err := s.Store.ListActivities(ctx, &store.FindActivity{