mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
feat: add signal repository + tests
This commit is contained in:
@@ -148,7 +148,7 @@ export const toProductNode = (productId: string | undefined, product: ProductCre
|
||||
|
||||
if('originCountryCode' in product) {
|
||||
if(typeof product.originCountryCode === 'undefined') {
|
||||
attrs.compliance_category = 'COUNTRY_ORIGIN_EXEMPT'
|
||||
attrs['compliance_category'] = 'COUNTRY_ORIGIN_EXEMPT'
|
||||
} else {
|
||||
content.push({
|
||||
tag: 'compliance_info',
|
||||
@@ -166,7 +166,7 @@ export const toProductNode = (productId: string | undefined, product: ProductCre
|
||||
|
||||
|
||||
if(typeof product.isHidden !== 'undefined') {
|
||||
attrs.is_hidden = product.isHidden.toString()
|
||||
attrs['is_hidden'] = product.isHidden.toString()
|
||||
}
|
||||
|
||||
const node: BinaryNode = {
|
||||
|
||||
Reference in New Issue
Block a user