From f8af75d7d3648bd23bc2df11e6745994cf7b0247 Mon Sep 17 00:00:00 2001 From: rui hildt Date: Fri, 28 Aug 2020 20:43:15 +0200 Subject: [PATCH] Make queries not return meeting password --- api/models/accountModel.js | 1 - api/models/meetingModel.js | 3 --- 2 files changed, 4 deletions(-) diff --git a/api/models/accountModel.js b/api/models/accountModel.js index 834b3a5..4a27ccc 100644 --- a/api/models/accountModel.js +++ b/api/models/accountModel.js @@ -49,7 +49,6 @@ function getMeetingsByAccountId(account_id) { 'm.start_time', 'm.duration', 'm.status', - 'm.password', ) .join('meeting as m', { 'm.id': 'p.meeting_id' }) .where({ account_id }); diff --git a/api/models/meetingModel.js b/api/models/meetingModel.js index 85cf371..82abc72 100644 --- a/api/models/meetingModel.js +++ b/api/models/meetingModel.js @@ -20,7 +20,6 @@ function addMeeting(data) { 'start_time', 'duration', 'status', - 'password', ]); } @@ -35,7 +34,6 @@ function updateMeeting(data, id) { 'start_time', 'duration', 'status', - 'password', ]); } @@ -54,7 +52,6 @@ function getMeetingById(id) { 'start_time', 'duration', 'status', - 'password', ); }