diff --git a/answerwc/to_client.go b/answerwc/to_client.go index 47c6897..5e3a4c1 100644 --- a/answerwc/to_client.go +++ b/answerwc/to_client.go @@ -273,7 +273,7 @@ func (w *SendToClient) notificationCustomer(ctx context.Context, account model.A historyData := customer_clients.InsertHistoryDeps{ UserID: account.UserID, Comment: fmt.Sprintf("%s privilege has expired, it was created at %d", privilege.PrivilegeID, privilege.CreatedAt.Unix()), - Key: "end", + Key: "privilege_expired", } err := w.customerService.InsertHistory(ctx, historyData) @@ -287,7 +287,7 @@ func (w *SendToClient) notificationCustomer(ctx context.Context, account model.A historyData := customer_clients.InsertHistoryDeps{ UserID: account.UserID, Comment: fmt.Sprintf("%s privilege has expired, it was created at %d", privilege.PrivilegeID, privilege.CreatedAt.Unix()), - Key: "end", + Key: "privilege_expired", } err := w.customerService.InsertHistory(ctx, historyData) diff --git a/privilegewc/check.go b/privilegewc/check.go index 622e672..4440f59 100644 --- a/privilegewc/check.go +++ b/privilegewc/check.go @@ -83,7 +83,7 @@ func (w *CheckWorker) deleteExpired(ctx context.Context) { toHistory = append(toHistory, customer_clients.InsertHistoryDeps{ UserID: data.UserID, Comment: fmt.Sprintf("%s privilege has expired, it was created at %d", data.Privilege.PrivilegeID, data.Privilege.CreatedAt.Unix()), - Key: "end", + Key: "privilege_expired", }) }