fix 'write' event documentation

This commit is contained in:
shamb0t 2019-12-13 07:30:42 +00:00
parent 406eea2a55
commit 71e6947966

2
API.md
View File

@ -612,7 +612,7 @@ Emitted after fully loading the local database.
### `write`
```javascript
db.events.on('write', (dbname, hash, entry) => ... )
db.events.on('write', (address, entry, heads) => ... )
```
Emitted after an entry was added locally to the database. *hash* is the IPFS hash of the latest state of the database. *entry* is the added database op.