Skip to content

Commit

Permalink
fix(dedicated.dbaas): fix cache refresh with iceberg query (#13972)
Browse files Browse the repository at this point in the history
ref: MANAGER-15729
Signed-off-by: David Arsène <[email protected]>
  • Loading branch information
darsene authored Nov 14, 2024
1 parent ae9859f commit a04482a
Showing 1 changed file with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,16 @@ export default class LogsListService {
res = res.addFilter(filter.name, filter.operator, filter.value);
});
}
return res.execute().$promise.then((response) => ({
data: response.data.map((service) => this.transformService(service)),
meta: {
totalCount:
parseInt(response.headers['x-pagination-elements'], 10) || 0,
},
}));

return res
.execute(null, { headers: { Pragma: 'no-cache' } })
.$promise.then((response) => ({
data: response.data.map((service) => this.transformService(service)),
meta: {
totalCount:
parseInt(response.headers['x-pagination-elements'], 10) || 0,
},
}));
}

/**
Expand Down

0 comments on commit a04482a

Please sign in to comment.