-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BE-012: Fix null violation DB transact issue
Error Info : Missing foreign key (processId) with relation notifyLogs → appLogs, that causing issue failed to transact DB on notificationhelper module run Payload : Foreign key violation: 7 ERROR: insert or update on table "notifyLogs" violates foreign key constraint "notifylogs_processid_foreign" Environment : Production Root cause : foreign key relation are not exist between notifylogs → applogs when insert transact happens Resolution : check and validate if processid between notifylogs → applogs is exists or not, if exists then do nothing. But if not exists then insert it before insert into notifylogs Related Changes : - app\Helpers\NotificationHelper.php Signed-off-by: Dicky Herlambang (花) <herlambangdicky5@gmail.com>
- Loading branch information
1 parent
7693b19
commit 10a8b79
Showing
1 changed file
with
40 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters