Skip to content

Commit

Permalink
.clear -> clearSync
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh committed Jan 24, 2022
1 parent 4689e6f commit cbf00da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/gatsby/src/datastore/lmdb/lmdb-datastore.ts
Expand Up @@ -184,10 +184,10 @@ function updateDataStore(action: ActionsUnion): void {
const dbs = getDatabases()
// Force sync commit
dbs.nodes.transactionSync(() => {
dbs.nodes.clear()
dbs.nodesByType.clear()
dbs.metadata.clear()
dbs.indexes.clear()
dbs.nodes.clearSync()
dbs.nodesByType.clearSync()
dbs.metadata.clearSync()
dbs.indexes.clearSync()
})
break
}
Expand Down

0 comments on commit cbf00da

Please sign in to comment.