tango-app-api-payment-subscription 3.0.31-dev → 3.0.32-dev
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
|
@@ -1042,6 +1042,7 @@ export const unsubscribeApproval = async ( req, res ) => {
|
|
|
1042
1042
|
clientProducts.status = 'deactive';
|
|
1043
1043
|
clientProducts.save();
|
|
1044
1044
|
await storeService.updateMany( { clientId: requestData.clientId }, { status: 'deactive' } );
|
|
1045
|
+
await userService.updateMany( { clientId: requestData.clientId }, { isActive: false } );
|
|
1045
1046
|
let userDetails= await userService.findOne( { clientId: requestData.clientId, role: 'superadmin' } );
|
|
1046
1047
|
if ( userDetails ) {
|
|
1047
1048
|
const templateHtml = fs.readFileSync( path.resolve( path.dirname( '' ) ) + '/src/hbs/trialUnsubscribeEmail.hbs', 'utf8' );
|
|
@@ -3,3 +3,6 @@ import model from 'tango-api-schema';
|
|
|
3
3
|
export const findOne = async ( query = {}, record = {} ) => {
|
|
4
4
|
return await model.userModel.findOne( query, record );
|
|
5
5
|
};
|
|
6
|
+
export const updateMany = async ( query = {}, record = {} ) => {
|
|
7
|
+
return await model.userModel.updateMany( query, record );
|
|
8
|
+
};
|