core: db upd

This commit is contained in:
undefined committed 2020-12-19 01:33:23 +08:00
1 parent e7794090b2
commit fc3321688f
4 files changed
+89 -40

No files matched your search

+2 -1
View File
@@ -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);
}