main
alex 2024-03-06 21:27:17 +01:00
parent c3e06b005a
commit ec2052910d
3 changed files with 11 additions and 0 deletions

BIN
main

Binary file not shown.

View File

@ -1207,6 +1207,10 @@
"CreatedBy": {
"type": "string"
},
"DealPhase": {
"type": "integer",
"format": "uint8"
},
"Email": {
"type": "string"
},
@ -1223,6 +1227,10 @@
"LastName": {
"type": "string"
},
"Pipeline": {
"type": "integer",
"format": "uint8"
},
"Telephone": {
"type": "string"
}

View File

@ -7,6 +7,7 @@ import (
"jannex/admin-dashboard-backend/modules/structs"
"jannex/admin-dashboard-backend/modules/utils"
"jannex/admin-dashboard-backend/socketclients"
"time"
"git.ex.umbach.dev/Alex/roese-utils/rslogger"
"git.ex.umbach.dev/Alex/roese-utils/rspagination"
@ -276,6 +277,8 @@ func CreateCrmCustomer(c *fiber.Ctx) error {
crmCustomer["DealPhase"] = 1
}
crmCustomer["CreatedAt"] = time.Now()
result := database.DB.Model(&structs.CrmCustomer{}).Create(&crmCustomer)
if err := handleError(result, c); err != nil {