Fix assignee filter bug in List

This commit is contained in:
2026-03-29 18:58:34 +02:00
parent 9e8c37564f
commit 13b4c4b651
22 changed files with 939 additions and 555 deletions

View File

@@ -3,6 +3,7 @@ package cmd
import (
"axolotl/db"
"axolotl/output"
"axolotl/service"
"bufio"
"fmt"
"os"
@@ -20,7 +21,8 @@ var deleteCmd = &cobra.Command{
fmt.Fprintln(os.Stderr, err)
return
}
n, err := d.NodeByID(args[0])
svc := service.NewSQLiteNodeService(d.DB, cfg.GetUser())
n, err := svc.GetByID(args[0])
if err != nil {
fmt.Fprintln(os.Stderr, " node not found:", args[0])
return
@@ -35,7 +37,7 @@ var deleteCmd = &cobra.Command{
}
}
if err := d.DeleteNode(args[0]); err != nil {
if err := svc.Delete(args[0]); err != nil {
fmt.Fprintln(os.Stderr, "failed to delete: ", err)
} else {
output.PrintAction(cmd.OutOrStdout(), "Deleted", args[0], true)