Skip to content

Commit bf10500

Browse files
committed
fix: prints oops
1 parent 8280b67 commit bf10500

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

cmd/activities.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,9 @@ var createCmd = &cobra.Command{
3131
err = godotenv.Load(".moco")
3232
if projectId == 0 && err == nil {
3333
projectId, err = strconv.Atoi(os.Getenv("MOCO_PROJECT_ID"))
34-
fmt.Println("read projectId", projectId)
3534
}
3635
if taskId == 0 && err == nil {
3736
taskId, err = strconv.Atoi(os.Getenv("MOCO_TASK_ID"))
38-
fmt.Println("read taskId", taskId)
3937
}
4038

4139
// if no flags or config, prompt

data/activities.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ func CreateActivity(projectId int, taskId int, description string, minutes int)
8080
Date: time.Now().Format("2006-01-02"),
8181
Seconds: minutes * 60,
8282
})
83-
fmt.Println(string(marshaledBody))
8483

8584
req, _ := http.NewRequest("POST", fmt.Sprintf("https://%s.mocoapp.com/api/v1/activities", domain), bytes.NewReader(marshaledBody))
8685
req.Header.Add("Authorization", fmt.Sprintf("Token token=%s", apiKey))

0 commit comments

Comments
 (0)