8032-devToTest_2440 #3009

Merged
alexm merged 262 commits from 8032-devToTest_2440 into test 2024-09-24 09:34:49 +00:00
1 changed files with 15 additions and 2 deletions
Showing only changes of commit 93e7163858 - Show all commits

View File

@ -59,8 +59,12 @@ module.exports = Self => {
}
}, myOptions);
if (!isUserInOperator)
await models.Operator.create({'workerFk': user.id});
if (!isUserInOperator) {
await models.Operator.create({
'workerFk': user.id,
'isOnReservationMode': false
});
}
const whereCondition = deviceId ? {id: deviceId} : {android_id: androidId};
const serialNumber =
@ -103,12 +107,21 @@ module.exports = Self => {
const getVersion = await models.MobileAppVersionControl.getVersion(ctx, nameApp);
const combinedResult = {
...getDataOperator.toObject(),
...getDataUser.toObject(),
...getVersion,
message: vMessage,
serialNumber,
};
const combinedResult2 = {
...getDataOperator.__data,
...getDataUser.__data,
...getVersion,
message: vMessage,
serialNumber,
};
console.log('conbinedResult2', combinedResult2);
return combinedResult;
};
};