Fix assignee filter bug in List
This commit is contained in:
@@ -3,6 +3,7 @@ package cmd
|
||||
import (
|
||||
"axolotl/db"
|
||||
"axolotl/output"
|
||||
"axolotl/service"
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
@@ -17,7 +18,8 @@ var showCmd = &cobra.Command{
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
return
|
||||
}
|
||||
if n, err := d.NodeByID(args[0]); err == nil {
|
||||
svc := service.NewSQLiteNodeService(d.DB, cfg.GetUser())
|
||||
if n, err := svc.GetByID(args[0]); err == nil {
|
||||
output.PrintNode(cmd.OutOrStdout(), n, jsonFlag)
|
||||
} else {
|
||||
fmt.Fprintln(os.Stderr, "node not found:", args[0])
|
||||
|
||||
Reference in New Issue
Block a user