Skip to content

Commit

Permalink
Update db.js
Browse files Browse the repository at this point in the history
Add keys param in config
  • Loading branch information
ariularapi authored Sep 14, 2019
1 parent c55f4a4 commit f5f39f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function _getConnection($q, config) {
if (connection.objectStoreNames.contains(store))
connection.deleteObjectStore(store);
connection.createObjectStore(store, {
keyPath: 'id',
keyPath: config.keys || 'id',
autoIncrement: true
});
});
Expand Down

0 comments on commit f5f39f4

Please sign in to comment.