Adjust join token expiry for event dates
This commit is contained in:
@@ -40,6 +40,14 @@ class Event extends Model
|
||||
],
|
||||
]);
|
||||
});
|
||||
|
||||
static::updated(function (self $event): void {
|
||||
if (! $event->wasChanged('date')) {
|
||||
return;
|
||||
}
|
||||
|
||||
app(EventJoinTokenService::class)->extendExpiryForEvent($event);
|
||||
});
|
||||
}
|
||||
|
||||
public function storageAssignments(): HasMany
|
||||
|
||||
Reference in New Issue
Block a user