แก้บัก ส่ง noti

This commit is contained in:
Nakorn Rientrakrunchai
2021-03-08 10:02:45 +07:00
parent 288a76cd44
commit bd19e4e3e1

View File

@@ -312,7 +312,7 @@ namespace TodoAPI2.Models
select i).FirstOrDefault();
string sql = $@"
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();
d.title = noti_message.Replace("{0}", owner_info.fullname);