Skip to content

Commit

Permalink
fix(backend): fix indexing draft changes with empty patches
Browse files Browse the repository at this point in the history
  • Loading branch information
burdiyan committed Sep 21, 2023
1 parent 0d491d9 commit 36c18a0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions backend/hyper/indexing.go
Original file line number Diff line number Diff line change
Expand Up @@ -634,10 +634,6 @@ func (bs *indexer) indexDocumentChange(conn *sqlite.Conn, blobID int64, author c

// Validate document change.
{
if ch.Patch == nil {
return fmt.Errorf("document change must have a patch")
}

pkdb, err := hypersql.LookupEnsure(conn, storage.LookupPublicKey, author)
if err != nil {
return err
Expand Down

0 comments on commit 36c18a0

Please sign in to comment.