🐛 Fix bugs
This commit is contained in:
@@ -11,8 +11,8 @@ public class RemoteStorageConfig
|
|||||||
public string Region { get; set; } = string.Empty;
|
public string Region { get; set; } = string.Empty;
|
||||||
public string Bucket { get; set; } = string.Empty;
|
public string Bucket { get; set; } = string.Empty;
|
||||||
public string Endpoint { get; set; } = string.Empty;
|
public string Endpoint { get; set; } = string.Empty;
|
||||||
[JsonIgnore] public string SecretId { get; set; } = string.Empty;
|
public string SecretId { get; set; } = string.Empty;
|
||||||
[JsonIgnore] public string SecretKey { get; set; } = string.Empty;
|
public string SecretKey { get; set; } = string.Empty;
|
||||||
public bool EnableSigned { get; set; }
|
public bool EnableSigned { get; set; }
|
||||||
public bool EnableSsl { get; set; }
|
public bool EnableSsl { get; set; }
|
||||||
public string? ImageProxy { get; set; }
|
public string? ImageProxy { get; set; }
|
||||||
|
@@ -19,6 +19,12 @@ public class FilePoolController(AppDatabase db) : ControllerBase
|
|||||||
var pools = await db.Pools
|
var pools = await db.Pools
|
||||||
.Where(p => p.PolicyConfig.PublicUsable || p.AccountId == accountId)
|
.Where(p => p.PolicyConfig.PublicUsable || p.AccountId == accountId)
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
|
pools = pools.Select(p =>
|
||||||
|
{
|
||||||
|
p.StorageConfig.SecretId = string.Empty;
|
||||||
|
p.StorageConfig.SecretKey = string.Empty;
|
||||||
|
return p;
|
||||||
|
}).ToList();
|
||||||
|
|
||||||
return Ok(pools);
|
return Ok(pools);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user