added rewards essentials

v1.18.x
Barış Soner Uşaklı 9 years ago
parent e6711189fd
commit ab4d4478e3

@ -20,7 +20,7 @@ module.exports = function(Meta) {
encoding: 'utf-8' encoding: 'utf-8'
}, function(err, pkgData) { }, function(err, pkgData) {
// If a bundled plugin/theme is not present, skip the dep check (#3384) // If a bundled plugin/theme is not present, skip the dep check (#3384)
if (err && err.code === 'ENOENT' && (module.startsWith('nodebb-plugin') || module.startsWith('nodebb-theme'))) { if (err && err.code === 'ENOENT' && (module === 'nodebb-rewards-essentials' || module.startsWith('nodebb-plugin') || module.startsWith('nodebb-theme'))) {
winston.warn('[meta/dependencies] Bundled plugin ' + module + ' not found, skipping dependency check.'); winston.warn('[meta/dependencies] Bundled plugin ' + module + ' not found, skipping dependency check.');
return next(true); return next(true);
} }

Loading…
Cancel
Save