change key
This commit is contained in:
parent
a939ae5194
commit
a15998dbaa
@ -273,7 +273,7 @@ func (w *SendToClient) notificationCustomer(ctx context.Context, account model.A
|
|||||||
historyData := customer_clients.InsertHistoryDeps{
|
historyData := customer_clients.InsertHistoryDeps{
|
||||||
UserID: account.UserID,
|
UserID: account.UserID,
|
||||||
Comment: fmt.Sprintf("%s privilege has expired, it was created at %d", privilege.PrivilegeID, privilege.CreatedAt.Unix()),
|
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)
|
err := w.customerService.InsertHistory(ctx, historyData)
|
||||||
@ -287,7 +287,7 @@ func (w *SendToClient) notificationCustomer(ctx context.Context, account model.A
|
|||||||
historyData := customer_clients.InsertHistoryDeps{
|
historyData := customer_clients.InsertHistoryDeps{
|
||||||
UserID: account.UserID,
|
UserID: account.UserID,
|
||||||
Comment: fmt.Sprintf("%s privilege has expired, it was created at %d", privilege.PrivilegeID, privilege.CreatedAt.Unix()),
|
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)
|
err := w.customerService.InsertHistory(ctx, historyData)
|
||||||
|
@ -83,7 +83,7 @@ func (w *CheckWorker) deleteExpired(ctx context.Context) {
|
|||||||
toHistory = append(toHistory, customer_clients.InsertHistoryDeps{
|
toHistory = append(toHistory, customer_clients.InsertHistoryDeps{
|
||||||
UserID: data.UserID,
|
UserID: data.UserID,
|
||||||
Comment: fmt.Sprintf("%s privilege has expired, it was created at %d", data.Privilege.PrivilegeID, data.Privilege.CreatedAt.Unix()),
|
Comment: fmt.Sprintf("%s privilege has expired, it was created at %d", data.Privilege.PrivilegeID, data.Privilege.CreatedAt.Unix()),
|
||||||
Key: "end",
|
Key: "privilege_expired",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user