แก้ไข op 10 ข้อ

This commit is contained in:
Nakorn Rientrakrunchai
2021-03-07 12:48:25 +07:00
parent 9530d1aa37
commit 9bac5ef7d3
23 changed files with 1567 additions and 355 deletions

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())
values('{Guid.NewGuid().ToString()}','App\Notifications\WorkflowNotification','App\Models\User',{noti_to_user_id.ToString()},@data,NOW()now()+interval'7h')
";
DataOfNotification d = new DataOfNotification();
d.title = noti_message.Replace("{0}", owner_info.fullname);