Page MenuHomePhorge

D5040.1775433675.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D5040.1775433675.diff

diff --git a/src/app/Console/Commands/User/ResyncCommand.php b/src/app/Console/Commands/User/ResyncCommand.php
--- a/src/app/Console/Commands/User/ResyncCommand.php
+++ b/src/app/Console/Commands/User/ResyncCommand.php
@@ -12,7 +12,7 @@
*
* @var string
*/
- protected $signature = 'user:resync {user?} {--deleted-only} {--dry-run} {--min-age=} {--limit=}';
+ protected $signature = 'user:resync {user?} {--deleted-only} {--created-only} {--dry-run} {--min-age=} {--limit=}';
/**
* The console command description.
@@ -30,6 +30,7 @@
{
$user = $this->argument('user');
$deleted_only = $this->option('deleted-only');
+ $created_only = $this->option('created-only');
$dry_run = $this->option('dry-run');
$min_age = $this->option('min-age');
$limit = $this->option('limit');
@@ -53,6 +54,14 @@
});
}
+ if ($created_only) {
+ $users->whereNull('deleted_at')
+ ->where(function ($query) {
+ $query->whereNot('status', '&', User::STATUS_IMAP_READY)
+ ->orWhereNot('status', '&', User::STATUS_LDAP_READY);
+ });
+ }
+
if ($min_age) {
if (preg_match('/^([0-9]+)([mdy])$/i', $min_age, $matches)) {
$count = (int) $matches[1];

File Metadata

Mime Type
text/plain
Expires
Mon, Apr 6, 12:01 AM (13 h, 36 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18834997
Default Alt Text
D5040.1775433675.diff (1 KB)

Event Timeline