mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 04:48:53 +00:00
fix(server): image action behavior in ci (#9077)
This commit is contained in:
@@ -38,7 +38,7 @@ export class CopilotStorage {
|
||||
) {
|
||||
const name = `${userId}/${workspaceId}/${key}`;
|
||||
await this.provider.put(name, blob);
|
||||
if (this.config.node.dev) {
|
||||
if (this.config.node.dev || this.config.node.test) {
|
||||
// return image base64url for dev environment
|
||||
return `data:image/png;base64,${blob.toString('base64')}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user