mirror of
https://github.com/edufeed-org/eventstore.git
synced 2025-12-09 16:24:32 +00:00
Fix document parsing
This commit is contained in:
parent
4004c6da63
commit
31e0f96164
1 changed files with 1 additions and 1 deletions
|
|
@ -159,7 +159,7 @@ func parseSearchResponse(responseBody []byte) ([]nostr.Event, error) {
|
|||
|
||||
for _, hit := range searchResponse.Hits {
|
||||
// Extract the document from the hit
|
||||
docMap, ok := hit["document"].(map[string]AMBMetadata)
|
||||
docMap, ok := hit["document"]
|
||||
if !ok {
|
||||
return nil, fmt.Errorf("invalid document format in search results")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue