From 71e6947966075947fa5729887198db9ad463dcb4 Mon Sep 17 00:00:00 2001 From: shamb0t Date: Fri, 13 Dec 2019 07:30:42 +0000 Subject: [PATCH] fix 'write' event documentation --- API.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/API.md b/API.md index c2ced49..2c99066 100644 --- a/API.md +++ b/API.md @@ -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.