Skip to main content

sendNotification

sendNotification(userId, message, description?, isExternal?): Promise<void>

Sends a notification to a user and stores it in the database

Parameters​

userId​

string

User ID who will receive the notification

message​

string

Main notification message

description?​

string

Optional additional details for the notification

isExternal?​

boolean

Optional flag to indicate if notification should be sent externally

Returns​

Promise<void>