fix: avoid cache of list of files

This commit is contained in:
tdurieux
2024-07-22 16:20:02 +02:00
parent 27583e6a17
commit d8dd408a65
3 changed files with 6 additions and 3 deletions

View File

@@ -1583,7 +1583,7 @@ angular
$scope.getFiles = async function (path) {
try {
const res = await $http.get(
`/api/repo/${$scope.repoId}/files/?path=${path}`
`/api/repo/${$scope.repoId}/files/?path=${path}&v=${$scope.options.lastUpdateDate}`
);
$scope.files.push(...res.data);
return res.data;

File diff suppressed because one or more lines are too long

View File

@@ -82,7 +82,10 @@ router.post(
.on("finish", () => {
archive.finalize();
});
archive.pipe(res);
archive.pipe(res).on("error", (error) => {
console.error(error);
res.end();
});
} catch (error) {
handleError(error, res);
}