Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix into 2151-edit_thermograph

This commit is contained in:
Joan Sanchez 2020-03-02 07:31:34 +01:00
commit 1c9e6141e4
1 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,8 @@ module.exports = Self => {
});
Self.sendCheckingPresence = async(ctx, workerId, message) => {
if (!workerId) return false;
const models = Self.app.models;
const account = await models.Account.findById(workerId);
const userId = ctx.req.accessToken.userId;