mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-22 04:26:23 +08:00
feat(server): s3 presigned url (#11364)
This commit is contained in:
@@ -56,8 +56,13 @@ export class CopilotStorage {
|
||||
}
|
||||
|
||||
@CallMetric('ai', 'blob_get')
|
||||
async get(userId: string, workspaceId: string, key: string) {
|
||||
return this.provider.get(`${userId}/${workspaceId}/${key}`);
|
||||
async get(
|
||||
userId: string,
|
||||
workspaceId: string,
|
||||
key: string,
|
||||
signedUrl?: boolean
|
||||
) {
|
||||
return this.provider.get(`${userId}/${workspaceId}/${key}`, signedUrl);
|
||||
}
|
||||
|
||||
@CallMetric('ai', 'blob_delete')
|
||||
|
||||
Reference in New Issue
Block a user