mirror of
https://github.com/nextcloud/passman.git
synced 2025-10-24 12:25:58 +08:00
Use subject instead of object type
This commit is contained in:
parent
d4011e1fcc
commit
0d4fe73079
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ class CronService {
|
|||
foreach($expired_credentials as $credential){
|
||||
$link = ''; // @TODO create direct link to credential
|
||||
|
||||
$sql = 'SELECT count(*) as rows from `*PREFIX*notifications` WHERE `object_type`= \'credential\' AND object_id=?';
|
||||
$sql = 'SELECT count(*) as rows from `*PREFIX*notifications` WHERE `subject`= \'credential_expired\' AND object_id=?';
|
||||
$query = $this->db->prepareQuery($sql);
|
||||
$query->bindParam(1, $credential->getId(), \PDO::PARAM_INT);
|
||||
$result = $query->execute();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue