From 6c169f69e9ac09936972cff29c393ec5f28383a0 Mon Sep 17 00:00:00 2001 From: Menci Date: Fri, 26 Apr 2019 15:57:29 +0800 Subject: [PATCH] Disable bluebird warning wForgottenReturn --- app.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app.js b/app.js index a55da2b..3a72f64 100644 --- a/app.js +++ b/app.js @@ -16,6 +16,13 @@ require('reflect-metadata'); global.Promise = require('bluebird'); +// Disable 'Warning: a promise was created in a handler at ...' +Promise.config({ + warnings: { + wForgottenReturn: false + } +}); + global.syzoj = { rootDir: __dirname, config: require('object-assign-deep')({}, require('./config-example.json'), require(options.config)),