mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Fixing call getter (#378)
This commit is contained in:
@@ -489,6 +489,9 @@ func (ds *sqlStore) GetCall(ctx context.Context, appName, callID string) (*model
|
|||||||
var call models.Call
|
var call models.Call
|
||||||
err := row.StructScan(&call)
|
err := row.StructScan(&call)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
if err == sql.ErrNoRows {
|
||||||
|
return nil, models.ErrCallNotFound
|
||||||
|
}
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return &call, nil
|
return &call, nil
|
||||||
|
|||||||
Reference in New Issue
Block a user