Eu estou no meio do vídeo na parte em que se tenta efetuar o logout mas por algum motivo fica aparecente este erro quando eu tento rodar o projeto:
[nodemon] app crashed - waiting for file changes before starting...
[nodemon] restarting due to changes...
[nodemon] starting `node server.js`
internal/util.js:290
throw new ERR_INVALID_ARG_TYPE('original', 'Function', original);
^
TypeError [ERR_INVALID_ARG_TYPE]: The "original" argument must be of type function. Received undefined
at promisify (internal/util.js:290:11)
at Object.<anonymous> (C:\Users\Adrian\Desktop\Allura\Node.js-JWT\blog-do-codigo\redis\manipula-blacklist.js:4:21)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:14)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:92:18)
at Object.<anonymous> (C:\Users\Adrian\Desktop\Allura\Node.js-JWT\blog-do-codigo\src\usuarios\usuarios-controlador.js:5:19)
at Module._compile (internal/modules/cjs/loader.js:1085:14) {
code: 'ERR_INVALID_ARG_TYPE'
}
Alguém sabe me explicar qual o problema e como resolver ele por favor?