mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 17:12:43 +00:00
committed by
Rainer Killinger
parent
0c43be2dbe
commit
e165837a15
@@ -234,7 +234,7 @@ export class Elasticsearch implements Database {
|
|||||||
size: 1,
|
size: 1,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (searchResponse.body.hits.total > 1) {
|
if (searchResponse.body.hits.total > 0) {
|
||||||
return {
|
return {
|
||||||
exists: true,
|
exists: true,
|
||||||
object: searchResponse.body.hits.hits[0],
|
object: searchResponse.body.hits.hits[0],
|
||||||
|
|||||||
Reference in New Issue
Block a user