We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 58134cd + 1553631 commit e7bfdb8Copy full SHA for e7bfdb8
src/Api/Controllers/Notifications/UsersSettingsController.php
@@ -104,7 +104,7 @@ public function setNotificationSettings(int $userId, int $notificationTypeId) :
104
$notificationSettings->users_id = $this->userData->getId();
105
$notificationSettings->apps_id = $this->app->getId();
106
$notificationSettings->notifications_types_id = $notificationTypeId;
107
- $notificationSettings->is_enabled = (int) true;
+ $notificationSettings->is_enabled = (int) false; //if its the first time its to turn it off
108
$notificationSettings->channels = json_encode([]);
109
} else {
110
$notificationSettings->is_enabled = (int) !$notificationSettings->is_enabled;
0 commit comments