added a condition to call adding a message

This commit is contained in:
stasex 2023-11-11 00:23:54 +02:00
parent 02eb8e3634
commit 17055273bf

View File

@ -178,11 +178,14 @@ public class ProductService : IProductService
} }
} }
} }
_wishlistsService.AddMessageToPersonalWishlistAsync(wishlistId, new MessageCreateDto() if (currentDataType == SearchEventType.Message)
{ {
Text = messageBuffer.Text, _wishlistsService.AddMessageToPersonalWishlistAsync(wishlistId, new MessageCreateDto()
}, cancellationToken); {
mqchecker = false; Text = messageBuffer.Text,
}, cancellationToken);
mqchecker = false;
}
} }
private SearchEventType DetermineDataType(string dataTypeHolder) private SearchEventType DetermineDataType(string dataTypeHolder)