mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-09-23 03:11:55 +00:00
@@ -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