Skip to content
Snippets Groups Projects
Unverified Commit 547c9dbd authored by John Molakvoæ's avatar John Molakvoæ Committed by GitHub
Browse files

Merge pull request #23580 from nextcloud/feat/share-mail-expire

Also expire share type email
parents 851e8c0d 620be7dc
No related branches found
No related tags found
No related merge requests found
...@@ -60,7 +60,10 @@ class ExpireSharesJob extends TimedJob { ...@@ -60,7 +60,10 @@ class ExpireSharesJob extends TimedJob {
->from('share') ->from('share')
->where( ->where(
$qb->expr()->andX( $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()->lte('expiration', $qb->expr()->literal($now)),
$qb->expr()->orX( $qb->expr()->orX(
$qb->expr()->eq('item_type', $qb->expr()->literal('file')), $qb->expr()->eq('item_type', $qb->expr()->literal('file')),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment