fix db tables to have school year
This commit is contained in:
@@ -42,7 +42,7 @@ class WhatsappInviteLogModel extends Model
|
||||
/**
|
||||
* Log a successful send.
|
||||
*/
|
||||
public function logSuccess(int $parentId, string $email, int $classSectionId = null, int $linkId = null): bool
|
||||
public function logSuccess(int $parentId, string $email, ?int $classSectionId = null, ?int $linkId = null): bool
|
||||
{
|
||||
return (bool) $this->insert([
|
||||
'parent_id' => $parentId,
|
||||
@@ -58,7 +58,7 @@ class WhatsappInviteLogModel extends Model
|
||||
/**
|
||||
* Log a failure with error message.
|
||||
*/
|
||||
public function logFailure(int $parentId, string $email, string $error, int $classSectionId = null, int $linkId = null): bool
|
||||
public function logFailure(int $parentId, string $email, string $error, ?int $classSectionId = null, ?int $linkId = null): bool
|
||||
{
|
||||
return (bool) $this->insert([
|
||||
'parent_id' => $parentId,
|
||||
|
||||
Reference in New Issue
Block a user