x
This commit is contained in:
@@ -74,6 +74,11 @@ module.exports = {
|
|||||||
code: 1,
|
code: 1,
|
||||||
msg: 'Missing required parameters'
|
msg: 'Missing required parameters'
|
||||||
});
|
});
|
||||||
|
const exist = await User.exists({ phone });
|
||||||
|
if (exist) return res.json({
|
||||||
|
code: 1,
|
||||||
|
msg: ''
|
||||||
|
});
|
||||||
let validInviter = '';
|
let validInviter = '';
|
||||||
if (inviter === 'AlUx9h!w0)y9') {
|
if (inviter === 'AlUx9h!w0)y9') {
|
||||||
validInviter = { id: 'AlUx9h!w0)y9' };
|
validInviter = { id: 'AlUx9h!w0)y9' };
|
||||||
|
|||||||
Reference in New Issue
Block a user