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