Merge branch '6398-ticketTrackingAsignFix' of https://gitea.verdnatura.es/verdnatura/salix into 6398-ticketTrackingAsignFix
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
commit
a623e5b90e
|
@ -257,18 +257,20 @@ module.exports = function(Self) {
|
|||
|
||||
class Mailer {
|
||||
async send(verifyOptions, cb) {
|
||||
const url = new URL(verifyOptions.verifyHref);
|
||||
if (process.env.NODE_ENV) url.port = '';
|
||||
try {
|
||||
const url = new URL(verifyOptions.verifyHref);
|
||||
if (process.env.NODE_ENV) url.port = '';
|
||||
|
||||
const params = {
|
||||
url: url.href,
|
||||
recipient: verifyOptions.to
|
||||
};
|
||||
const email = new Email('email-verify', {
|
||||
url: url.href,
|
||||
recipient: verifyOptions.to
|
||||
});
|
||||
await email.send();
|
||||
|
||||
const email = new Email('email-verify', params);
|
||||
email.send();
|
||||
|
||||
cb(null, verifyOptions.to);
|
||||
cb(null, verifyOptions.to);
|
||||
} catch (err) {
|
||||
cb(err);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -7,7 +7,8 @@ const execFile = require('child_process').execFile;
|
|||
* https://docs.microsoft.com/en-us/troubleshoot/windows-server/identity/useraccountcontrol-manipulate-account-properties
|
||||
*/
|
||||
const UserAccountControlFlags = {
|
||||
ACCOUNTDISABLE: 2
|
||||
ACCOUNTDISABLE: 0x2,
|
||||
DONT_EXPIRE_PASSWD: 0x10000
|
||||
};
|
||||
|
||||
module.exports = Self => {
|
||||
|
@ -118,7 +119,8 @@ module.exports = Self => {
|
|||
}
|
||||
|
||||
entry = {
|
||||
userAccountControl: sambaUser.userAccountControl
|
||||
userAccountControl: (sambaUser.userAccountControl
|
||||
| UserAccountControlFlags.DONT_EXPIRE_PASSWD)
|
||||
& ~UserAccountControlFlags.ACCOUNTDISABLE,
|
||||
uidNumber: info.uidNumber,
|
||||
accountExpires: 0,
|
||||
|
|
|
@ -16,19 +16,4 @@ columns:
|
|||
vehicleFk: vehicle
|
||||
agencyModeFk: agency
|
||||
routeFk: route
|
||||
zoneFk: zone
|
||||
name: name
|
||||
beachFk: beach
|
||||
ticketPacked: tickets packed
|
||||
ticketFree: tickets free
|
||||
ticketProduction: tickets production
|
||||
packages: packages
|
||||
note: note
|
||||
dated: dated
|
||||
dockFk: dock
|
||||
priority: priority
|
||||
etd: etd
|
||||
expeditionTruckFk: truck
|
||||
m3boxes: m3 boxes
|
||||
bufferFk: buffer
|
||||
isPickingAllowed: is picking allowed
|
||||
zoneFk: zone
|
|
@ -16,19 +16,4 @@ columns:
|
|||
vehicleFk: vehículo
|
||||
agencyModeFk: agencia
|
||||
routeFk: ruta
|
||||
zoneFk: zona
|
||||
name: nombre
|
||||
beachFk: playa
|
||||
ticketPacked: tickets encajados
|
||||
ticketFree: tickets libres
|
||||
ticketProduction: tickets producción
|
||||
packages: paquetes
|
||||
note: nota
|
||||
dated: fecha
|
||||
dockFk: muelle
|
||||
priority: prioridad
|
||||
etd: etd
|
||||
expeditionTruckFk: camión
|
||||
m3boxes: m3 cajas
|
||||
bufferFk: buffer
|
||||
isPickingAllowed: está permitido recoger
|
||||
zoneFk: zona
|
|
@ -0,0 +1,19 @@
|
|||
name: routesMonitor
|
||||
columns:
|
||||
routeFk: route
|
||||
name: name
|
||||
beachFk: beach
|
||||
ticketPacked: tickets packed
|
||||
ticketFree: tickets free
|
||||
ticketProduction: tickets production
|
||||
packages: packages
|
||||
note: note
|
||||
dated: dated
|
||||
dockFk: dock
|
||||
m3: m3
|
||||
priority: priority
|
||||
etd: etd
|
||||
expeditionTruckFk: truck
|
||||
m3boxes: m3 boxes
|
||||
bufferFk: buffer
|
||||
isPickingAllowed: is picking allowed
|
|
@ -0,0 +1,19 @@
|
|||
name: monitorRutas
|
||||
columns:
|
||||
routeFk: ruta
|
||||
name: nombre
|
||||
beachFk: playa
|
||||
ticketPacked: tickets encajados
|
||||
ticketFree: tickets libres
|
||||
ticketProduction: tickets producción
|
||||
packages: paquetes
|
||||
note: nota
|
||||
dated: fecha
|
||||
dockFk: muelle
|
||||
m3: m3
|
||||
priority: prioridad
|
||||
etd: etd
|
||||
expeditionTruckFk: camión
|
||||
m3boxes: m3 cajas
|
||||
bufferFk: buffer
|
||||
isPickingAllowed: está permitido recoger
|
|
@ -22,5 +22,8 @@
|
|||
},
|
||||
"Vehicle": {
|
||||
"dataSource": "vn"
|
||||
},
|
||||
"RoutesMonitor": {
|
||||
"dataSource": "vn"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,61 @@
|
|||
{
|
||||
"name": "RoutesMonitor",
|
||||
"base": "Loggable",
|
||||
"options": {
|
||||
"mysql": {
|
||||
"table": "routesMonitor"
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
"routeFk": {
|
||||
"type": "number",
|
||||
"id": true,
|
||||
"description": "Identifier"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"beachFk": {
|
||||
"type": "number"
|
||||
},
|
||||
"ticketPacked": {
|
||||
"type": "number"
|
||||
},
|
||||
"ticketFree": {
|
||||
"type": "number"
|
||||
},
|
||||
"ticketProduction": {
|
||||
"type": "number"
|
||||
},
|
||||
"packages": {
|
||||
"type": "number"
|
||||
},
|
||||
"note": {
|
||||
"type": "string"
|
||||
},
|
||||
"dated": {
|
||||
"type": "date"
|
||||
},
|
||||
"dockFk": {
|
||||
"type": "number"
|
||||
},
|
||||
"m3": {
|
||||
"type": "number"
|
||||
},
|
||||
"priority": {
|
||||
"type": "number"
|
||||
},
|
||||
"expeditionTruckFk": {
|
||||
"type": "number"
|
||||
},
|
||||
"m3boxes": {
|
||||
"type": "number"
|
||||
},
|
||||
"bufferFk": {
|
||||
"type": "number"
|
||||
},
|
||||
"isPickingAllowed": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue