diff --git a/packages/accounts-base-pg-driver/accounts-base-pg-driver.js b/packages/accounts-base-pg-driver/accounts-base-pg-driver.js index 998fc60..52c564a 100644 --- a/packages/accounts-base-pg-driver/accounts-base-pg-driver.js +++ b/packages/accounts-base-pg-driver/accounts-base-pg-driver.js @@ -8,6 +8,7 @@ AccountsDBClientPG = class AccountsDBClientPG { // format the userID to the datatype used by storage backend // e.g. postgres is using userId as an integer formatUserIdToDbType(userId) { + let currentInvocation = DDP._CurrentInvocation.get(); return parseInt(currentInvocation.userId, 10); }