From e8b5f4accd1c4a76f7107d35040a23cf902a5bfa Mon Sep 17 00:00:00 2001 From: Nakorn Rientrakrunchai Date: Mon, 14 Sep 2020 15:21:50 +0700 Subject: [PATCH] fix created at --- .../eva_create_evaluation_detail_statusService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Models/eva_create_evaluation_detail_status/eva_create_evaluation_detail_statusService.cs b/Models/eva_create_evaluation_detail_status/eva_create_evaluation_detail_statusService.cs index 7b56297..d809ef2 100644 --- a/Models/eva_create_evaluation_detail_status/eva_create_evaluation_detail_statusService.cs +++ b/Models/eva_create_evaluation_detail_status/eva_create_evaluation_detail_statusService.cs @@ -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);