tango-app-api-client 3.1.21-alpha.1 → 3.1.21-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-app-api-client",
3
- "version": "3.1.21-alpha.1",
3
+ "version": "3.1.21-alpha.2",
4
4
  "description": "client",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -645,7 +645,7 @@ export async function updateBrandInfo( req, res ) {
645
645
  const updateAck = await brandInfoUpdate( {
646
646
  clientId: req.params?.id, registeredCompanyName: req.body?.registeredCompanyName, industry: req.body?.industry,
647
647
  clientType: req.body?.clientType, registeredAddress: req.body?.registeredAddress, headQuarters: req.body?.headQuarters,
648
- website: req.body?.website, status: req.body?.status, logo: req.files?.logo ? `brandLogo.${req.files.logo.name.split( '.' )[1]}` : undefined,
648
+ website: req.body?.website, status: req.body?.status, logo: req.files?.logo ? `brandLogo.${req.files.logo.name.split( '.' )[1]}` : undefined, averageTransactionValue: req.body?.averageTransactionValue,
649
649
  } );
650
650
 
651
651
  if ( req.body?.status === 'active' ) {
@@ -59,7 +59,7 @@ export function getUserData( { id } ) {
59
59
  return userModel.findOne( { _id: id }, { email: 1, countryCode: 1, mobileNumber: 1 } );
60
60
  }
61
61
 
62
- export function brandInfoUpdate( { clientId, registeredCompanyName, industry, clientType, registeredAddress, headQuarters, website, status, logo } ) {
62
+ export function brandInfoUpdate( { clientId, registeredCompanyName, industry, clientType, registeredAddress, headQuarters, website, status, logo, averageTransactionValue } ) {
63
63
  return clientModel.updateOne( { clientId: clientId },
64
64
  {
65
65
  $set: {
@@ -71,6 +71,7 @@ export function brandInfoUpdate( { clientId, registeredCompanyName, industry, cl
71
71
  'profileDetails.website': website,
72
72
  'profileDetails.logo': logo,
73
73
  'status': status,
74
+ 'averageTransactionValue': averageTransactionValue,
74
75
  },
75
76
  } );
76
77
  }