SZ
Size: a a a
SZ
SP
req, err := wh.ValidateRequest(req)
if err != nil {
return nil, err
}
body, err := ioutil.ReadAll(req.Body)
if err != nil {
return nil, err
}
defer req.Body.Close()
var wr messages.CustomerWebHookRequest
if err := json.Unmarshal(body, &wr); err != nil {
return nil, err
}
type CustomerWebHookRequest struct {
EventId string `json:"EventId"`
EventName string `json:"EventName"`
EventTime string `json:"EventTime"`
NewStatus string `json:"NewStatus"`
OldStatus string `json:"OldStatus"`
CustomerId string `json:"CustomerId"`
ExternalReference string `json:"ExternalReference"`
}
err := db.PostgresConn.QueryRow(`
INSERT INTO ALBUM(author_id, album_name, album_year, cover)
VALUES ($1, $2, $3, $4)
RETURNING id
`, authorID, albumName, albumYear, coverToInsert).Scan(&albumID)
SP
SP
## dependencies - fetch all dependencies for scripts
dependencies:
${call colored, dependensies is running...}
./scripts/get-dependencies.sh
VS
## dependencies - fetch all dependencies for scripts
dependencies:
${call colored, dependensies is running...}
./scripts/get-dependencies.sh
SP
VS
АС
ВС
АС
AA
AA
AA
АС
CF
ЕА
ЕА
Y