mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Merge pull request #23580 from nextcloud/feat/share-mail-expire
Also expire share type email
This commit is contained in:
commit
547c9dbd51
1 changed files with 4 additions and 1 deletions
|
|
@ -60,7 +60,10 @@ class ExpireSharesJob extends TimedJob {
|
|||
->from('share')
|
||||
->where(
|
||||
$qb->expr()->andX(
|
||||
$qb->expr()->eq('share_type', $qb->expr()->literal(IShare::TYPE_LINK)),
|
||||
$qb->expr()->orX(
|
||||
$qb->expr()->eq('share_type', $qb->expr()->literal(IShare::TYPE_LINK)),
|
||||
$qb->expr()->eq('share_type', $qb->expr()->literal(IShare::TYPE_EMAIL))
|
||||
),
|
||||
$qb->expr()->lte('expiration', $qb->expr()->literal($now)),
|
||||
$qb->expr()->orX(
|
||||
$qb->expr()->eq('item_type', $qb->expr()->literal('file')),
|
||||
|
|
|
|||
Loading…
Reference in a new issue