feat: vacuum records manually (#420)

This commit is contained in:
boojack
2022-11-06 12:21:58 +08:00
committed by GitHub
parent 4f10c12092
commit dc5d705f8c
17 changed files with 295 additions and 50 deletions

View File

@@ -128,7 +128,7 @@ func (s *Server) registerShortcutRoutes(g *echo.Group) {
}
shortcutDelete := &api.ShortcutDelete{
ID: shortcutID,
ID: &shortcutID,
}
if err := s.Store.DeleteShortcut(ctx, shortcutDelete); err != nil {
if common.ErrorCode(err) == common.NotFound {