mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-26 02:35:58 +08:00
chore(server): debug blob sizes limit (#4181)
This commit is contained in:
@@ -669,6 +669,11 @@ export class WorkspaceResolver {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (size + buffer.length > quota) {
|
if (size + buffer.length > quota) {
|
||||||
|
this.logger.log(
|
||||||
|
`storage size limit exceeded after blob set: ${size} > ${
|
||||||
|
buffer.length > quota
|
||||||
|
}`
|
||||||
|
);
|
||||||
throw new ForbiddenException('storage size limit exceeded');
|
throw new ForbiddenException('storage size limit exceeded');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user