Skip to content

Commit

Permalink
fix: add regMethod, torusProvider fields to the mongo db models
Browse files Browse the repository at this point in the history
  • Loading branch information
yaroslav-fedyshyn-nordwhale committed May 4, 2020
1 parent 039c070 commit 9fbfbe3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/server/db/mongo/models/user-private.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ export const UserPrivateSchema = new mongoose.Schema({
emailVerificationCode: {
type: String
},
regMethod: {
type: String
},
torusProvider: {
type: String
},
createdDate: {
type: Date
},
Expand Down
2 changes: 1 addition & 1 deletion src/server/storage/addUserSteps.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const updateW3Record = async (user: any, logger: any) => {
logger.debug('updateW3Record got web3 user records', { web3Record })
} else {
logger.error('updateW3Record empty w3 response', { user })
throw new Error('empty w3 response')
//throw new Error('empty w3 response')
}
return {
loginToken: web3Record.login_token,
Expand Down

0 comments on commit 9fbfbe3

Please sign in to comment.