mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-07-06 05:38:09 +02:00
fix: avoid cache of list of files
This commit is contained in:
@@ -1583,7 +1583,7 @@ angular
|
|||||||
$scope.getFiles = async function (path) {
|
$scope.getFiles = async function (path) {
|
||||||
try {
|
try {
|
||||||
const res = await $http.get(
|
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);
|
$scope.files.push(...res.data);
|
||||||
return res.data;
|
return res.data;
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -82,7 +82,10 @@ router.post(
|
|||||||
.on("finish", () => {
|
.on("finish", () => {
|
||||||
archive.finalize();
|
archive.finalize();
|
||||||
});
|
});
|
||||||
archive.pipe(res);
|
archive.pipe(res).on("error", (error) => {
|
||||||
|
console.error(error);
|
||||||
|
res.end();
|
||||||
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
handleError(error, res);
|
handleError(error, res);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user