fix: harden Web image admission
This commit is contained in:
@@ -96,8 +96,8 @@ class TestAttachmentStore extends AttachmentStore {
|
||||
mediaTypes: ['image/png'],
|
||||
}
|
||||
|
||||
validateImage(_input: SaveImageAttachment): void {
|
||||
throw new Error('test invariant attachment store does not validate images')
|
||||
validateImage(_input: SaveImageAttachment): Promise<void> {
|
||||
return Promise.reject(new Error('test invariant attachment store does not validate images'))
|
||||
}
|
||||
|
||||
saveImage(_input: SaveImageAttachment): Promise<ImageAttachmentRef> {
|
||||
|
||||
Reference in New Issue
Block a user