|
|
@@ -737,6 +737,8 @@ module.exports = function(crowi, app) {
|
|
|
attachment = await attachmentService.createAttachment(file, req.user, null, attachmentType);
|
|
|
const attachmentConfigParams = {
|
|
|
'customize:brandLogoAttachmentId': attachment.id,
|
|
|
+ 'customize:isDefaultLogo': false,
|
|
|
+ 'customize:uploadedLogoSrc': attachment.filePathProxied,
|
|
|
};
|
|
|
await crowi.configManager.updateConfigsInTheSameNamespace('crowi', attachmentConfigParams);
|
|
|
}
|
|
|
@@ -767,6 +769,7 @@ module.exports = function(crowi, app) {
|
|
|
const attachmentConfigParams = {
|
|
|
'customize:brandLogoAttachmentId': null,
|
|
|
'customize:isDefaultLogo': true,
|
|
|
+ 'customize:uploadedLogoSrc': null,
|
|
|
};
|
|
|
await crowi.configManager.updateConfigsInTheSameNamespace('crowi', attachmentConfigParams);
|
|
|
}
|