Guest User

Untitled

a guest
Nov 12th, 2018
347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.98 KB | None | 0 0
  1. User {
  2. dataValues:
  3. { id: 2,
  4. username: 'Bob Fake',
  5. email: 'bob@fake.com',
  6. password: '$2a$10$PPNvl5WETVt5SztOh2BCpeMThw1nkThXnYsI/UNIysnPklAbDFHnS',
  7. role: 'standard',
  8. createdAt: 2018-11-11T15:54:58.681Z,
  9. updatedAt: 2018-11-11T15:54:58.681Z },
  10. _previousDataValues:
  11. { id: 2,
  12. username: 'Bob Fake',
  13. email: 'bob@fake.com',
  14. password: '$2a$10$PPNvl5WETVt5SztOh2BCpeMThw1nkThXnYsI/UNIysnPklAbDFHnS',
  15. role: 'standard',
  16. createdAt: 2018-11-11T15:54:58.681Z,
  17. updatedAt: 2018-11-11T15:54:58.681Z },
  18. _changed: {},
  19. _modelOptions:
  20. { timestamps: true,
  21. validate: {},
  22. freezeTableName: false,
  23. underscored: false,
  24. underscoredAll: false,
  25. paranoid: false,
  26. rejectOnEmpty: false,
  27. whereCollection: { id: '2' },
  28. schema: null,
  29. schemaDelimiter: '',
  30. defaultScope: {},
  31. scopes: [],
  32. indexes: [],
  33. name: { plural: 'Users', singular: 'User' },
  34. omitNull: false,
  35. sequelize:
  36. Sequelize {
  37. options: [Object],
  38. config: [Object],
  39. dialect: [Object],
  40. queryInterface: [Object],
  41. models: [Object],
  42. modelManager: [Object],
  43. connectionManager: [Object],
  44. importCache: [Object],
  45. test: [Object] },
  46. hooks: {},
  47. uniqueKeys: { Users_email_unique: [Object] } },
  48. _options:
  49. { isNewRecord: false,
  50. _schema: null,
  51. _schemaDelimiter: '',
  52. raw: true,
  53. attributes:
  54. [ 'id',
  55. 'username',
  56. 'email',
  57. 'password',
  58. 'role',
  59. 'createdAt',
  60. 'updatedAt' ] },
  61. __eagerlyLoadedAssociations: [],
  62. isNewRecord: false }
  63. Unhandled rejection ReferenceError: token is not defined
  64. at User.findById.then (C:\Users\Alex Hallam\bloc\blocipedia-node\src\controllers\userController.js:93:25)
  65. at tryCatcher (C:\Users\Alex Hallam\bloc\blocipedia-node\node_modules\bluebird\js\release\util.js:16:23)
  66. at Promise._settlePromiseFromHandler (C:\Users\Alex Hallam\bloc\blocipedia-node\node_modules\bluebird\js\release\promise.js:512:31)
  67. at Promise._settlePromise (C:\Users\Alex Hallam\bloc\blocipedia-node\node_modules\bluebird\js\release\promise.js:569:18)
  68. at Promise._settlePromise0 (C:\Users\Alex Hallam\bloc\blocipedia-node\node_modules\bluebird\js\release\promise.js:614:10)
  69. at Promise._settlePromises (C:\Users\Alex Hallam\bloc\blocipedia-node\node_modules\bluebird\js\release\promise.js:694:18)
  70. at _drainQueueStep (C:\Users\Alex Hallam\bloc\blocipedia-node\node_modules\bluebird\js\release\async.js:138:12)
  71. at _drainQueue (C:\Users\Alex Hallam\bloc\blocipedia-node\node_modules\bluebird\js\release\async.js:131:9)
  72. at Async._drainQueues (C:\Users\Alex Hallam\bloc\blocipedia-node\node_modules\bluebird\js\release\async.js:147:5)
  73. at Immediate.Async.drainQueues (C:\Users\Alex Hallam\bloc\blocipedia-node\node_modules\bluebird\js\release\async.js:17:14)
  74. at runCallback (timers.js:794:20)
  75. at tryOnImmediate (timers.js:752:5)
  76. at processImmediate [as _immediateCallback] (timers.js:729:5)
Add Comment
Please, Sign In to add comment