Skip to content

Commit

Permalink
fix: avoid cache of list of files
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Jul 22, 2024
1 parent 27583e6 commit d8dd408
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion public/script/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion public/script/bundle.min.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion src/streamer/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit d8dd408

Please sign in to comment.