mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-16 07:57:33 +08:00
use base context to handle the cases where the user IP address is unavailable
This commit is contained in:
@@ -778,7 +778,7 @@ func (s *TransactionService) CreateScheduledTransactions(c core.Context, current
|
||||
Amount: template.Amount,
|
||||
HideAmount: template.HideAmount,
|
||||
Comment: template.Comment,
|
||||
CreatedIp: "127.0.0.1",
|
||||
CreatedIp: c.ClientIP(),
|
||||
ScheduledCreated: true,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user