change key

This commit is contained in:
Pavel 2024-06-03 15:37:29 +03:00
parent a939ae5194
commit a15998dbaa
2 changed files with 3 additions and 3 deletions

@ -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)

@ -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",
})
}