mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-09-21 17:17:44 +02:00
Fix: Document title changes are not reflected when the document is sent to signers.
Merge pull request #1498 from nxglabs/staging
This commit is contained in:
@@ -11,6 +11,7 @@ export const deleteUserOtp = async (req, res) => {
|
||||
|
||||
const extUserQuery = new Parse.Query('contracts_Users');
|
||||
extUserQuery.equalTo('UserId', { __type: 'Pointer', className: '_User', objectId: userId });
|
||||
extUserQuery.include('TenantId');
|
||||
const extUser = await extUserQuery.first({ useMasterKey: true });
|
||||
if (!extUser) return res.status(404).json({ error: 'User not found' });
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@ export function generateOtp(len = OTP_LENGTH) {
|
||||
}
|
||||
|
||||
export async function sendDeleteOtpEmail(extUser, otp) {
|
||||
const _extUser = extUser && JSON.parse(JSON.stringify(extUser));
|
||||
const params = {
|
||||
extUserId: extUser.id,
|
||||
from: appName,
|
||||
|
||||
Reference in New Issue
Block a user