Spaces:
Running
Running
commit
Browse files- src/mods/mods.ts +2 -0
src/mods/mods.ts
CHANGED
|
@@ -31,6 +31,7 @@ export class ModManager {
|
|
| 31 |
const blob = await downloadFile({
|
| 32 |
repo: this.bucketId,
|
| 33 |
path: remotePath,
|
|
|
|
| 34 |
});
|
| 35 |
|
| 36 |
if (!blob) {
|
|
@@ -57,6 +58,7 @@ export class ModManager {
|
|
| 57 |
repo: this.bucketId,
|
| 58 |
path: this.bucketFolder,
|
| 59 |
recursive: true,
|
|
|
|
| 60 |
})) {
|
| 61 |
if (item.type !== "file" || !item.path.toLowerCase().endsWith(".jar")) {
|
| 62 |
continue;
|
|
|
|
| 31 |
const blob = await downloadFile({
|
| 32 |
repo: this.bucketId,
|
| 33 |
path: remotePath,
|
| 34 |
+
accessToken: process.env.HF_TOKEN
|
| 35 |
});
|
| 36 |
|
| 37 |
if (!blob) {
|
|
|
|
| 58 |
repo: this.bucketId,
|
| 59 |
path: this.bucketFolder,
|
| 60 |
recursive: true,
|
| 61 |
+
accessToken: process.env.HF_TOKEN
|
| 62 |
})) {
|
| 63 |
if (item.type !== "file" || !item.path.toLowerCase().endsWith(".jar")) {
|
| 64 |
continue;
|