- Add Button Whatsapp Chat
- Fixed 'Ask Info' and 'Book' if the email arrived... - Added "Settings" table: URL_FACEBOOK, TELEGRAM_SUPPORT, URL_INSTAGRAM, WHATSAPP_CELL, INT_CODE, MAIN_EMAIL, CONTACTS_EMAIL_CELL, CALL_WORKING_DAYS, EVENTS_CAL, MSG_REPLY_AFTER_BOOKING. -
This commit is contained in:
@@ -33,6 +33,17 @@ module.exports = {
|
||||
TYPE_PROJECT: 1,
|
||||
TYPE_TODO: 2,
|
||||
|
||||
FieldType: {
|
||||
boolean: 1,
|
||||
date: 2,
|
||||
string: 4,
|
||||
binary: 8,
|
||||
html: 16,
|
||||
select: 32,
|
||||
number: 64,
|
||||
typeinrec: 128,
|
||||
},
|
||||
|
||||
MAX_PHASES: 5,
|
||||
FIRST_PROJ: '__PROJECTS',
|
||||
EXECUTE_CALCPROJ: true,
|
||||
@@ -280,11 +291,11 @@ module.exports = {
|
||||
return sortedList;
|
||||
},
|
||||
|
||||
checkUserOk(userpassed, userauth) {
|
||||
checkUserOk(userpassed, userauth, res) {
|
||||
this.mylog('checkUserOk', userpassed, userauth);
|
||||
if (String(userpassed) !== String(userauth)) {
|
||||
// I'm trying to write something not mine!
|
||||
this.mylog('userId = ', userpassed.userId, 'req.user._id', userauth);
|
||||
this.mylog('userId = ', userpassed, 'req.user._id', userauth);
|
||||
return { exit: true, ret: res.status(404).send({ code: server_constants.RIS_CODE_TODO_CREATING_NOTMYUSER }) }
|
||||
} else {
|
||||
return { exit: false, ret: false }
|
||||
@@ -388,7 +399,7 @@ module.exports = {
|
||||
]
|
||||
}
|
||||
if (idapp > 0) {
|
||||
query.push( { $match: { idapp } } );
|
||||
query.push({ $match: { idapp } });
|
||||
}
|
||||
|
||||
// console.log('QUERYMATCH', query[0].$match.or);
|
||||
@@ -457,6 +468,6 @@ module.exports = {
|
||||
SetBit(myval, bit) {
|
||||
myval = myval & bit;
|
||||
return myval
|
||||
}
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user