Merge branch 'master' of github.com:navi-ppl/cybertron into TP-55555/error-log-consumer
This commit is contained in:
@@ -81,4 +81,4 @@ aws:
|
||||
|
||||
mjolnir:
|
||||
service.url: https://qa-mjolnir-service.np.navi-ppl.in
|
||||
realm.id: O3G7sCWk4r
|
||||
realm.id: ZicSxsvBwE
|
||||
|
||||
@@ -12,4 +12,5 @@ type Project struct {
|
||||
ProjectReferenceId string `json:"projectReferenceId" gorm:"primaryKey"`
|
||||
Name string `json:"name" gorm:"unique"`
|
||||
Team string `json:"team"`
|
||||
Icon string `json:"icon"`
|
||||
}
|
||||
|
||||
@@ -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