This commit is contained in:
root 2019-08-06 09:26:44 +02:00
parent b08fd07909
commit 2929048ebe

View file

@ -529,8 +529,7 @@ async function _createTx(tx, context, entity, content) {
if (copyFilesFrom) {
await files.copyAllTx(tx, context, copyFilesFrom.entityType, 'file', copyFilesFrom.entityId, 'campaign', 'file', id);
convertFileURLs(data.sourceCustom, copyFilesFrom.entityType, copyFilesFrom.entityId, 'campaign', id);
convertFileURLs(data.sourceCustom, copyFilesFrom.entityType, copyFilesFrom.entityId, 'campaign', id, true);
await tx('campaigns')
.update({
data: JSON.stringify(data)