fix: delete workspace user

This commit is contained in:
steven
2022-09-29 22:50:58 +08:00
parent 4a88bace66
commit 67e619ab4a
2 changed files with 11 additions and 9 deletions

View File

@ -182,7 +182,9 @@ func (s *Store) DeleteShortcut(ctx context.Context, delete *api.ShortcutDelete)
return FormatError(err)
}
s.cache.DeleteCache(api.ShortcutCache, *delete.ID)
if delete.ID != nil {
s.cache.DeleteCache(api.ShortcutCache, *delete.ID)
}
return nil
}