Merge branch 'master' of github.com:navi-ppl/cybertron into TP-55555/error-log-consumer
This commit is contained in:
@@ -23,6 +23,7 @@ type ProjectCreator struct {
|
||||
type ProjectBody struct {
|
||||
Name string `json:"name" binding:"required"`
|
||||
Team string `json:"team" binding:"required"`
|
||||
Icon string `json:"icon"`
|
||||
}
|
||||
|
||||
func NewProjectCreator(logger *log.Logger, dbClient *gorm.DB, s3Client *aws.Actions, kafkaProducer producer.KProducer) *ProjectCreator {
|
||||
@@ -53,6 +54,7 @@ func (pc *ProjectCreator) CreateProject(ctx *gin.Context) {
|
||||
ProjectReferenceId: i.String(),
|
||||
Name: projectBody.Name,
|
||||
Team: projectBody.Team,
|
||||
Icon: projectBody.Icon,
|
||||
})
|
||||
|
||||
if result.Error != nil {
|
||||
|
||||
Reference in New Issue
Block a user