Fix for #516
This commit is contained in:
parent
713dfaa278
commit
a1e52c2d7a
1 changed files with 7 additions and 1 deletions
|
@ -22,6 +22,8 @@ const mosaicoTemplates = require('../models/mosaico-templates');
|
|||
const contextHelpers = require('../lib/context-helpers');
|
||||
const interoperableErrors = require('../../shared/interoperable-errors');
|
||||
|
||||
const bluebird = require('bluebird');
|
||||
|
||||
const { getTrustedUrl, getSandboxUrl, getPublicUrl } = require('../lib/urls');
|
||||
const { base } = require('../../shared/templates');
|
||||
const { AppType } = require('../../shared/app');
|
||||
|
@ -221,7 +223,11 @@ function getRouter(appType) {
|
|||
if (method === 'placeholder') {
|
||||
width = sanitizeSize(width, 1, 2048, 600, false);
|
||||
height = sanitizeSize(height, 1, 2048, 300, false);
|
||||
try {
|
||||
image = await placeholderImage(width, height);
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
}
|
||||
|
||||
} else {
|
||||
width = sanitizeSize(width, 1, 2048, 600, false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue