Skip to content

Commit 966a3fd

Browse files
authored
Fix code in readme (#603)
1 parent 1b004c8 commit 966a3fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ class LowWithLodash<T> extends Low<T> {
148148
const defaultData: Data = {
149149
posts: [],
150150
}
151-
const adapter = new JSONFile<Data>('db.json', defaultData)
151+
const adapter = new JSONFile<Data>('db.json')
152152

153-
const db = new LowWithLodash(adapter)
153+
const db = new LowWithLodash(adapter, defaultData)
154154
await db.read()
155155

156156
// Instead of db.data use db.chain to access lodash API

0 commit comments

Comments
 (0)