diff options
Diffstat (limited to 'syncapi/routing/relations.go')
-rw-r--r-- | syncapi/routing/relations.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/syncapi/routing/relations.go b/syncapi/routing/relations.go index 2bf11a56..8374bf5b 100644 --- a/syncapi/routing/relations.go +++ b/syncapi/routing/relations.go @@ -80,7 +80,10 @@ func Relations( snapshot, err := syncDB.NewDatabaseSnapshot(req.Context()) if err != nil { logrus.WithError(err).Error("Failed to get snapshot for relations") - return spec.InternalServerError() + return util.JSONResponse{ + Code: http.StatusInternalServerError, + JSON: spec.InternalServerError{}, + } } var succeeded bool defer sqlutil.EndTransactionWithCheck(snapshot, &succeeded, &err) |