fix created at

This commit is contained in:
Nakorn Rientrakrunchai
2020-09-14 15:21:50 +07:00
parent 4198bdbd5e
commit e8b5f4accd

View File

@@ -276,8 +276,8 @@ namespace TodoAPI2.Models
where i.id == owner_eva_employee_id
select i).FirstOrDefault();
string sql = $@"
insert into notifications(id,type,notifiable_type,notifiable_id,data)
values('{Guid.NewGuid().ToString()}','App\Notifications\WorkflowNotification','App\Models\User',{noti_to_user_id.ToString()},@data)
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())
";
DataOfNotification d = new DataOfNotification();
d.title = noti_message.Replace("{0}", owner_info.fullname);