mirror of
https://github.com/plankanban/planka.git
synced 2026-07-15 21:48:11 +03:00
chore: Upgrade data structure only if S3 is enabled
This commit is contained in:
@@ -907,6 +907,10 @@ const upgradeFileAttachments = async () => {
|
||||
};
|
||||
|
||||
const upgradeDataStructure = async () => {
|
||||
if (!sails.hooks.s3.isEnabled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
const fileManager = sails.hooks['file-manager'].getInstance();
|
||||
|
||||
await fileManager.renameDir(PrevPathSegments.FAVICONS, sails.config.custom.faviconsPathSegment);
|
||||
|
||||
Reference in New Issue
Block a user