Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
# Changelog
All notable changes to this project will be documented in this file.

## [Unreleased]
## [8.1.4] - 2025-07-15
### Fixes
- Fixed some typos
- Removed inaccessible polls from polls overview
- Removed link target from inaccessible polls in navigation
- Removed clone action from inaccessible polls in navigation
- Fixed visual bug when scrolling in list view
- Fixed exception on notifications which may cause resending notification mails

### changes
- Center poll table
Expand Down
4 changes: 3 additions & 1 deletion lib/Db/LogMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
namespace OCA\Polls\Db;

use OCP\AppFramework\Db\QBMapper;
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\IDBConnection;

/**
Expand All @@ -31,7 +32,8 @@ public function findUnprocessed(): array {

$qb->select('*')
->from($this->getTableName())
->where($qb->expr()->isNotNull('poll_id'));
->where($qb->expr()->isNotNull('poll_id'))
->andWhere($qb->expr()->eq('processed', $qb->expr()->literal(0, IQueryBuilder::PARAM_INT)));
return $this->findEntities($qb);
}

Expand Down
3 changes: 2 additions & 1 deletion lib/Service/MailService.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,9 @@ public function sendNotifications(): void {
}

foreach ($this->logs as $logItem) {
$logItem->setProcessed(time());
$logItem->setProcessed(intval(microtime(true) * 1000));
$this->logMapper->update($logItem);
usleep(5000);
}
}

Expand Down