Skip to content

Commit

Permalink
fix bug where update was not returning anything
Browse files Browse the repository at this point in the history
  • Loading branch information
jackyzha0 committed Feb 3, 2022
1 parent ef99523 commit 63ab92b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class Document {
this.content = content
this.version += 1
this.posted = false
await this.client.updateDocument(this)
return await this.client.updateDocument(this)
}

// Helper function to bump timestamp of document
Expand Down Expand Up @@ -165,8 +165,7 @@ class ArweaveClient {
}

// otherwise, update latest
await this.#insert(document)
return document
return await this.#insert(document)
}

// Wait until block is confirmed as mined using exponential retry-backoff
Expand Down

0 comments on commit 63ab92b

Please sign in to comment.