admin-notifications error
-
This is on our JFF setup, you have login with permissions from prior time rescuing me
when we click to process unban requests:
TypeError: /var/www/html/app/views/frontpage/notifications/index.pug:45
43| ul.dropdown-menu.dropdown-menu-right.bgm-orange
44| li45| a(href='/unban-request/delete/'+unbanrequest.bann_id._id)
46| span.zmdi.zmdi-thumb-down
47| | #{t('frontpages:notifications.notifications_card_unban_decline')}
48| li.dividerCannot read property '_id' of null
at eval (eval at wrap (/var/www/html/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:801:99)
at eval (eval at wrap (/var/www/html/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:980:4)
at template (eval at wrap (/var/www/html/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:1306:72)
at Object.exports.renderFile (/var/www/html/node_modules/pug/lib/index.js:427:38)
at Object.exports.renderFile (/var/www/html/node_modules/pug/lib/index.js:417:21)
at View.exports.__express [as engine] (/var/www/html/node_modules/pug/lib/index.js:464:11)
at View.render (/var/www/html/node_modules/express/lib/view.js:135:8)
at tryRender (/var/www/html/node_modules/express/lib/application.js:640:10)
at Function.render (/var/www/html/node_modules/express/lib/application.js:592:3)
at ServerResponse.render (/var/www/html/node_modules/express/lib/response.js:1012:7)
at /var/www/html/app/controllers/index/home.js:359:9
at tryCatcher (/var/www/html/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/var/www/html/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/var/www/html/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/var/www/html/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/var/www/html/node_modules/bluebird/js/release/promise.js:729:18)
at Promise._fulfill (/var/www/html/node_modules/bluebird/js/release/promise.js:673:18)
at PropertiesPromiseArray.PromiseArray._resolve (/var/www/html/node_modules/bluebird/js/release/promise_array.js:127:19)
at PropertiesPromiseArray._promiseFulfilled (/var/www/html/node_modules/bluebird/js/release/props.js:78:14)
at Promise._settlePromise (/var/www/html/node_modules/bluebird/js/release/promise.js:609:26)
at Promise._settlePromise0 (/var/www/html/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/var/www/html/node_modules/bluebird/js/release/promise.js:729:18)
at Promise._fulfill (/var/www/html/node_modules/bluebird/js/release/promise.js:673:18)
at /var/www/html/node_modules/bluebird/js/release/nodeback.js:42:21
at /var/www/html/node_modules/mongoose/lib/model.js:4590:16
at /var/www/html/node_modules/mongoose/lib/utils.js:264:16
at _hooks.execPost (/var/www/html/node_modules/mongoose/lib/query.js:4326:11)
at /var/www/html/node_modules/kareem/index.js:135:16
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)