typo
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2022-02-28 13:27:03 +01:00
parent ab6b5aa803
commit cf9851c8dc
2 changed files with 4 additions and 4 deletions

View File

@ -59,7 +59,7 @@ module.exports = Self => {
'Cookie': cookie
}
};
const condtions = {
const searchFilter = {
condition: [
{
DBName: find,
@ -80,7 +80,7 @@ module.exports = Self => {
const dialogId = dialogJson.find(dialogs => dialogs.DisplayName === 'find').Id;
// get docuwareID
Object.assign(options, {'body': JSON.stringify(condtions)});
Object.assign(options, {'body': JSON.stringify(searchFilter)});
const response = await got.post(
`${docuwareUrl}/FileCabinets/${fileCabinetId}/Query/DialogExpression?dialogId=${dialogId}`, options);
JSON.parse(response.body).Items[0].Id;

View File

@ -72,7 +72,7 @@ module.exports = Self => {
'Cookie': cookie
}
};
const condtions = {
const searchFilter = {
condition: [
{
DBName: find,
@ -93,7 +93,7 @@ module.exports = Self => {
const dialogId = dialogJson.find(dialogs => dialogs.DisplayName === 'find').Id;
// get docuwareID
Object.assign(options, {'body': JSON.stringify(condtions)});
Object.assign(options, {'body': JSON.stringify(searchFilter)});
const response = await got.post(`${docuwareUrl}/FileCabinets/${fileCabinetId}/Query/DialogExpression?dialogId=${dialogId}`, options);
const docuwareId = JSON.parse(response.body).Items[0].Id;