perf: 七牛oss支持删除过期备份

This commit is contained in:
xiaojunnuo
2025-04-25 18:36:49 +08:00
parent 0088929622
commit b7113bda23
5 changed files with 69 additions and 20 deletions
@@ -24,7 +24,7 @@ export class TencentCosClient {
return new sdk.default(clientConfig);
}
async uploadFile(key: string, file: Buffer) {
async uploadFile(key: string, file: Buffer | string) {
const cos = await this.getCosClient();
return new Promise((resolve, reject) => {
cos.putObject(