Skip to content

Commit d8dd408

Browse files
committed
fix: avoid cache of list of files
1 parent 27583e6 commit d8dd408

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

public/script/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1583,7 +1583,7 @@ angular
15831583
$scope.getFiles = async function (path) {
15841584
try {
15851585
const res = await $http.get(
1586-
`/api/repo/${$scope.repoId}/files/?path=${path}`
1586+
`/api/repo/${$scope.repoId}/files/?path=${path}&v=${$scope.options.lastUpdateDate}`
15871587
);
15881588
$scope.files.push(...res.data);
15891589
return res.data;

public/script/bundle.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/streamer/route.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,10 @@ router.post(
8282
.on("finish", () => {
8383
archive.finalize();
8484
});
85-
archive.pipe(res);
85+
archive.pipe(res).on("error", (error) => {
86+
console.error(error);
87+
res.end();
88+
});
8689
} catch (error) {
8790
handleError(error, res);
8891
}

0 commit comments

Comments
 (0)