fix(api): missing checks

This commit is contained in:
yassinedorbozgithub 2024-10-27 10:06:55 +01:00
parent 6b387b826b
commit 99935e116a
2 changed files with 2 additions and 0 deletions

View File

@ -53,6 +53,7 @@ export class BlockRepository extends BaseRepository<
if (
block.message &&
'attachment' in block.message &&
block.message.attachment.payload &&
'url' in block.message.attachment.payload
) {
this.logger.error(

View File

@ -409,6 +409,7 @@ export class BlockService extends BaseService<Block, BlockPopulate, BlockFull> {
if (
block.message &&
'attachment' in block.message &&
block.message.attachment.payload &&
'url' in block.message.attachment.payload
) {
this.logger.error(