แก้บัก ส่ง noti
This commit is contained in:
@@ -312,7 +312,7 @@ namespace TodoAPI2.Models
|
|||||||
select i).FirstOrDefault();
|
select i).FirstOrDefault();
|
||||||
string sql = $@"
|
string sql = $@"
|
||||||
insert into notifications(id,type,notifiable_type,notifiable_id,data,created_at)
|
insert into notifications(id,type,notifiable_type,notifiable_id,data,created_at)
|
||||||
values('{Guid.NewGuid().ToString()}','App\Notifications\WorkflowNotification','App\Models\User',{noti_to_user_id.ToString()},@data,NOW()now()+interval'7h')
|
values('{Guid.NewGuid().ToString()}','App\Notifications\WorkflowNotification','App\Models\User',{noti_to_user_id.ToString()},@data,now()+interval'7h')
|
||||||
";
|
";
|
||||||
DataOfNotification d = new DataOfNotification();
|
DataOfNotification d = new DataOfNotification();
|
||||||
d.title = noti_message.Replace("{0}", owner_info.fullname);
|
d.title = noti_message.Replace("{0}", owner_info.fullname);
|
||||||
|
|||||||
Reference in New Issue
Block a user