From a15998dbaa1d4232ca65b1edb81575dfcb767c2c Mon Sep 17 00:00:00 2001 From: Pavel Date: Mon, 3 Jun 2024 15:37:29 +0300 Subject: [PATCH] change key --- answerwc/to_client.go | 4 ++-- privilegewc/check.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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", }) }