Remove usages of executeStatement

executeStatement is available only in Nextcloud 22

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-11-30 15:08:16 +01:00
parent ef7db42c32
commit 8a962b030f
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
2 changed files with 4 additions and 4 deletions

View File

@ -114,7 +114,7 @@ class AppointmentConfigMapper extends QBMapper {
->where($qb->expr()->eq('id', $qb->createNamedParameter($id, IQueryBuilder::PARAM_INT), IQueryBuilder::PARAM_INT))
->andWhere($qb->expr()->eq('user_id', $qb->createNamedParameter($userId, IQueryBuilder::PARAM_STR), IQueryBuilder::PARAM_STR));
return $qb->executeStatement();
return $qb->execute();
}
public function deleteByUserId(string $uid): void {
@ -123,6 +123,6 @@ class AppointmentConfigMapper extends QBMapper {
$qb->delete($this->tableName)
->where($qb->expr()->eq('user_id', $qb->createNamedParameter($uid, IQueryBuilder::PARAM_STR), IQueryBuilder::PARAM_STR));
$qb->executeStatement();
$qb->execute();
}
}

View File

@ -71,7 +71,7 @@ class BookingMapper extends QBMapper {
IQueryBuilder::PARAM_INT_ARRAY
)
);
return $delete->executeStatement();
return $delete->execute();
}
/**
@ -83,6 +83,6 @@ class BookingMapper extends QBMapper {
$qb = $this->db->getQueryBuilder();
$qb->delete($this->getTableName())
->where($qb->expr()->lt('created_at', $qb->createNamedParameter($limit, IQueryBuilder::PARAM_INT), IQueryBuilder::PARAM_INT));
return $qb->executeStatement();
return $qb->execute();
}
}