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

This reverts commit 94c93f1f45.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2023-06-14 12:08:16 +02:00
parent faa1c72e23
commit 8838fba6c0
No known key found for this signature in database
GPG Key ID: CC42AC2A7F0E56D8
2 changed files with 1 additions and 4 deletions

View File

@ -77,7 +77,7 @@ class AppointmentConfigMapper extends QBMapper {
*/
public function findByToken(string $token) : AppointmentConfig {
$qb = $this->db->getQueryBuilder();
$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')
$qb->select('*')
->from($this->getTableName())
->where($qb->expr()->eq('token', $qb->createNamedParameter($token, IQueryBuilder::PARAM_STR), IQueryBuilder::PARAM_STR));
return $this->findEntity($qb);

View File

@ -10,8 +10,5 @@
<MissingTemplateParam>
<code>IEventListener</code>
</MissingTemplateParam>
<UndefinedClass>
<code>AppointmentBookedEvent</code>
</UndefinedClass>
</file>
</files>