mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-10-20 14:47:18 +02:00
fix: avoid cache of list of files
This commit is contained in:
1 parent
27583e6a17
commit
d8dd408a65
3 files changed
+6
-3
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user