Skip to content

Commit

Permalink
Revert "fix(appointments): Ignore extraneous columns in AppointmentCo…
Browse files Browse the repository at this point in the history
…nfigMapper::findByToken"

This reverts commit 94c93f1.

Signed-off-by: Christoph Wurst <[email protected]>
  • Loading branch information
ChristophWurst committed Aug 4, 2023
1 parent ba774d5 commit 9f8fb93
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion lib/Db/AppointmentConfigMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function findById(int $id) : AppointmentConfig {
*/
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);
Expand Down
3 changes: 0 additions & 3 deletions tests/psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,5 @@
<MissingTemplateParam>
<code>IEventListener</code>
</MissingTemplateParam>
<UndefinedClass>
<code>AppointmentBookedEvent</code>
</UndefinedClass>
</file>
</files>

0 comments on commit 9f8fb93

Please sign in to comment.