- fixed problem with empty project;
This commit is contained in:
parent
696d0f2233
commit
40fcb5896a
10
cmd/main.go
10
cmd/main.go
|
|
@ -23,17 +23,7 @@ import (
|
|||
"golang.org/x/sync/errgroup"
|
||||
)
|
||||
|
||||
<<<<<<< HEAD
|
||||
const (
|
||||
envfile = "prod.env"
|
||||
migrationfile = "../internal/storage/migrate"
|
||||
// production env:
|
||||
// envfile = "../docker/prod.env"
|
||||
// migrationfile = "../internal/storage/migrate"
|
||||
)
|
||||
=======
|
||||
const migrationfile = "../internal/storage/migrate"
|
||||
>>>>>>> dev
|
||||
|
||||
func main() {
|
||||
log.Print("started")
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ package controller
|
|||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"ticket-pimp/internal/domain"
|
||||
)
|
||||
|
|
@ -13,6 +14,10 @@ func (wc *WorkflowController) CreateCoda(guildID string, chanID string) (string,
|
|||
return "", err
|
||||
}
|
||||
|
||||
if p == nil {
|
||||
return "", errors.New("project wasn't found in the db")
|
||||
}
|
||||
|
||||
requestResult, err := wc.ICoda.CreateApp(domain.CodaApplication{
|
||||
ID: p.Key,
|
||||
Summary: p.Name,
|
||||
|
|
@ -23,5 +28,4 @@ func (wc *WorkflowController) CreateCoda(guildID string, chanID string) (string,
|
|||
})
|
||||
|
||||
return requestResult, err
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue