Skip to content

Commit e7bfdb8

Browse files
authored
Merge pull request #786 from bakaphp/hotfix-changing-user-notifications
2 parents 58134cd + 1553631 commit e7bfdb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Api/Controllers/Notifications/UsersSettingsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function setNotificationSettings(int $userId, int $notificationTypeId) :
104104
$notificationSettings->users_id = $this->userData->getId();
105105
$notificationSettings->apps_id = $this->app->getId();
106106
$notificationSettings->notifications_types_id = $notificationTypeId;
107-
$notificationSettings->is_enabled = (int) true;
107+
$notificationSettings->is_enabled = (int) false; //if its the first time its to turn it off
108108
$notificationSettings->channels = json_encode([]);
109109
} else {
110110
$notificationSettings->is_enabled = (int) !$notificationSettings->is_enabled;

0 commit comments

Comments
 (0)