mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-26 04:23:58 +03:00
Fix remove contact with gravatar/color (#2542)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
d1cb89c5de
commit
2707c34659
@ -50,6 +50,10 @@ export async function OnContactDelete (tx: Tx, { findAll, hierarchy, storageFx }
|
|||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (avatar.includes('://') && !avatar.startsWith('image://')) {
|
||||||
|
return []
|
||||||
|
}
|
||||||
|
|
||||||
storageFx(async (adapter, bucket) => {
|
storageFx(async (adapter, bucket) => {
|
||||||
await adapter.remove(bucket, [avatar])
|
await adapter.remove(bucket, [avatar])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user