Make explicit that forceFormat is optional

This commit is contained in:
Daniel García Aubert 2018-03-05 11:19:17 +01:00
parent f03d98cd0d
commit 5de8c4f9c3

View File

@ -89,7 +89,7 @@ NamedMapsController.prototype.register = function(app) {
);
};
NamedMapsController.prototype.getNamedMapProvider = function ({ label, forcedFormat }) {
NamedMapsController.prototype.getNamedMapProvider = function ({ label, forcedFormat = null }) {
return function getNamedMapProviderMiddleware (req, res, next) {
const { user } = res.locals;
const { config, auth_token } = req.query;