mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
nodejs: braces for multi-line blocks with if and else
This commit is contained in:
@ -49,7 +49,9 @@ const getDiscoveryInfo = async function (siteUrl) {
|
||||
}
|
||||
|
||||
cache = actions;
|
||||
setTimeout(() => {return cache = null}, 1000 * 60 * 60); // 1 hour
|
||||
setTimeout(() => {
|
||||
return cache = null
|
||||
}, 1000 * 60 * 60); // 1 hour
|
||||
|
||||
return actions;
|
||||
}
|
||||
@ -63,7 +65,9 @@ const requestDiscovery = async function (siteUrl) {
|
||||
attributeNamePrefix: '',
|
||||
ignoreAttributes: false,
|
||||
parseAttributeValue: true,
|
||||
attrValueProcessor: (val, attrName) => {return he.decode(val, {isAttributeValue: true})}
|
||||
attrValueProcessor: (val, attrName) => {
|
||||
return he.decode(val, {isAttributeValue: true})
|
||||
}
|
||||
});
|
||||
if (discovery['wopi-discovery']) {
|
||||
for (const app of discovery['wopi-discovery']['net-zone'].app) {
|
||||
|
||||
@ -57,8 +57,12 @@ exports.registerRoutes = function (app) {
|
||||
if (el.name == 'edit') docsExtEdit.push(`.${el.ext}`);
|
||||
});
|
||||
|
||||
const editedExts = configServer.get('editedDocs').filter((i) => {return docsExtEdit.includes(i)}); // Checking supported extensions
|
||||
const fillExts = configServer.get('fillDocs').filter((i) => {return docsExtEdit.includes(i)});
|
||||
const editedExts = configServer.get('editedDocs').filter((i) => {
|
||||
return docsExtEdit.includes(i)
|
||||
}); // Checking supported extensions
|
||||
const fillExts = configServer.get('fillDocs').filter((i) => {
|
||||
return docsExtEdit.includes(i)
|
||||
});
|
||||
|
||||
try {
|
||||
// get all the stored files
|
||||
|
||||
Reference in New Issue
Block a user