PutOnboard accepts a project instance and insert it to database
(storeKey string, storeValue *models.Store)
| 42 | |
| 43 | // PutOnboard accepts a project instance and insert it to database |
| 44 | func PutStore(storeKey string, storeValue *models.Store) (*models.Store, errors.Error) { |
| 45 | // verify input |
| 46 | if err := VerifyStruct(storeValue); err != nil { |
| 47 | return nil, err |
| 48 | } |
| 49 | |
| 50 | err := db.CreateOrUpdate(storeValue, dal.Where("store_key = ?", storeKey)) |
| 51 | if err != nil { |
| 52 | return nil, err |
| 53 | } |
| 54 | |
| 55 | return storeValue, nil |
| 56 | } |
nothing calls this directly
no test coverage detected