diff --git a/angular2-indexeddb.ts b/angular2-indexeddb.ts index 36da6de..46a149f 100644 --- a/angular2-indexeddb.ts +++ b/angular2-indexeddb.ts @@ -27,7 +27,7 @@ export class AngularIndexedDB { }; request.onupgradeneeded = function (e) { - upgradeCallback(e, self.dbWrapper.db); + upgradeCallback(e, self.dbWrapper.db, request); }; });