mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: db upd
This commit is contained in:
1 parent
e7794090b2
commit
fc3321688f
4 files changed
+89
-40
No files matched your search
@@ -90,7 +90,8 @@ class StorageService {
|
||||
return await this.client.putObject(this.opts.bucket, target, file, meta);
|
||||
}
|
||||
|
||||
async get(target: string) {
|
||||
async get(target: string, path?: string) {
|
||||
if (path) return await this.client.fGetObject(this.opts.bucket, target, path);
|
||||
return await this.client.getObject(this.opts.bucket, target);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user