Dont store empty messages
This commit is contained in:
parent
b938c15255
commit
07d820c140
@ -1902,13 +1902,17 @@ CREATE OR REPLACE PACKAGE BODY app_actions AS
|
|||||||
BEGIN
|
BEGIN
|
||||||
v_log_id := app.log_module();
|
v_log_id := app.log_module();
|
||||||
--
|
--
|
||||||
|
IF LTRIM(RTRIM(in_message)) IS NULL THEN
|
||||||
|
RETURN;
|
||||||
|
END IF;
|
||||||
|
--
|
||||||
INSERT INTO user_messages (app_id, user_id, message_id, message_type, message_payload, session_id, created_at, created_by)
|
INSERT INTO user_messages (app_id, user_id, message_id, message_type, message_payload, session_id, created_at, created_by)
|
||||||
VALUES (
|
VALUES (
|
||||||
COALESCE(in_app_id, app.get_app_id()),
|
COALESCE(in_app_id, app.get_app_id()),
|
||||||
in_user_id,
|
in_user_id,
|
||||||
COALESCE(in_message_id, log_id.NEXTVAL),
|
COALESCE(in_message_id, log_id.NEXTVAL),
|
||||||
COALESCE(in_type, 'SUCCESS'),
|
COALESCE(in_type, 'SUCCESS'),
|
||||||
in_message,
|
LTRIM(RTRIM(in_message)),
|
||||||
in_session_id,
|
in_session_id,
|
||||||
SYSDATE,
|
SYSDATE,
|
||||||
app.get_user_id()
|
app.get_user_id()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user