[bug] Change error message; for bug 62643

This commit is contained in:
Sergey Konovalov
2024-09-17 19:13:49 +03:00
parent 7a29353c55
commit 7c662010df
2 changed files with 4 additions and 3 deletions

View File

@ -3686,9 +3686,9 @@ exports.install = function(server, callbackFunction) {
for (i = 0; i < participants.length; ++i) {
participant = participants[i];
if (data.needUrlKey) {
if (0 == data.needUrlMethod) {
if (0 === data.needUrlMethod) {
outputData.setData(yield storage.getSignedUrls(ctx, participant.baseUrl, data.needUrlKey, data.needUrlType, data.creationDate));
} else if (1 == data.needUrlMethod) {
} else if (1 === data.needUrlMethod) {
outputData.setData(yield storage.getSignedUrl(ctx, participant.baseUrl, data.needUrlKey, data.needUrlType, undefined, data.creationDate));
} else {
let url;

View File

@ -1856,7 +1856,8 @@ exports.receiveTask = function(data, ack) {
let saveAsRes = yield processWopiSaveAs(ctx, cmd);
if (!saveAsRes.res && saveAsRes.wopiParams) {
outputData.setStatus('err');
outputData.setData(constants.UNKNOWN);
outputData.setData(constants.CONVERT);
additionalOutput.needUrlKey = null;
}
}
} else if ('sfcm' === command) {