aboutsummaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/add.go2
-rw-r--r--commands/select/select_test.go6
2 files changed, 4 insertions, 4 deletions
diff --git a/commands/add.go b/commands/add.go
index ea40227c..d199b4c7 100644
--- a/commands/add.go
+++ b/commands/add.go
@@ -44,7 +44,7 @@ func runAddBug(cmd *cobra.Command, args []string) error {
}
}
- b, err := backend.NewBug(addTitle, addMessage)
+ b, _, err := backend.NewBug(addTitle, addMessage)
if err != nil {
return err
}
diff --git a/commands/select/select_test.go b/commands/select/select_test.go
index b9594fee..393ec88b 100644
--- a/commands/select/select_test.go
+++ b/commands/select/select_test.go
@@ -33,14 +33,14 @@ func TestSelect(t *testing.T) {
require.NoError(t, err)
for i := 0; i < 10; i++ {
- _, err := repoCache.NewBugRaw(rene, time.Now().Unix(), "title", "message", nil, nil)
+ _, _, err := repoCache.NewBugRaw(rene, time.Now().Unix(), "title", "message", nil, nil)
require.NoError(t, err)
}
// and two more for testing
- b1, err := repoCache.NewBugRaw(rene, time.Now().Unix(), "title", "message", nil, nil)
+ b1, _, err := repoCache.NewBugRaw(rene, time.Now().Unix(), "title", "message", nil, nil)
require.NoError(t, err)
- b2, err := repoCache.NewBugRaw(rene, time.Now().Unix(), "title", "message", nil, nil)
+ b2, _, err := repoCache.NewBugRaw(rene, time.Now().Unix(), "title", "message", nil, nil)
require.NoError(t, err)
err = Select(repoCache, b1.Id())