fix(appointments): Ignore extraneous columns in AppointmentConfigMapper::findByToken

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2023-06-12 15:08:55 +02:00
parent eeab866208
commit 94c93f1f45
No known key found for this signature in database
GPG Key ID: CC42AC2A7F0E56D8
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ class AppointmentConfigMapper extends QBMapper {
*/
public function findByToken(string $token) : AppointmentConfig {
$qb = $this->db->getQueryBuilder();
$qb->select('*')
$qb->select('id', 'token', 'name', 'description', 'location', 'visibility', 'user_id', 'target_calendar_uri', 'calendar_freebusy_uris', 'availability', 'start', 'end', 'length', 'increment', 'preparation_duration', 'followup_duration', 'time_before_next_slot', 'daily_max', 'future_limit')
->from($this->getTableName())
->where($qb->expr()->eq('token', $qb->createNamedParameter($token, IQueryBuilder::PARAM_STR), IQueryBuilder::PARAM_STR));
return $this->findEntity($qb);