mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-12 18:32:44 +00:00
fix: avoid cache of list of files
This commit is contained in:
@@ -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;
|
||||
|
||||
2
public/script/bundle.min.js
vendored
2
public/script/bundle.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user