mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
core: fix storage check display (#603)
This commit is contained in:
1 parent
1c91ac470c
commit
d3f9a64b9b
1 file changed
+3
-3
@@ -256,7 +256,7 @@ class RemoteStorageService {
|
||||
async status() {
|
||||
return {
|
||||
type: 'S3',
|
||||
status: !!this.error,
|
||||
status: !this.error,
|
||||
error: this.error,
|
||||
bucket: this.bucket,
|
||||
};
|
||||
@@ -265,7 +265,7 @@ class RemoteStorageService {
|
||||
|
||||
class LocalStorageService {
|
||||
client: null;
|
||||
error: null;
|
||||
error = '';
|
||||
dir: string;
|
||||
opts: null;
|
||||
private replaceWithAlternativeUrlFor: Record<'user' | 'judge', (originalUrl: string) => string>;
|
||||
@@ -342,7 +342,7 @@ class LocalStorageService {
|
||||
async status() {
|
||||
return {
|
||||
type: 'Local',
|
||||
status: !!this.error,
|
||||
status: !this.error,
|
||||
error: this.error,
|
||||
bucket: 'Hydro',
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user