fix default sync logic

This commit is contained in:
c9s 2022-05-02 10:39:19 +08:00
parent faccc64377
commit 2bdcf2266d
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -623,6 +623,10 @@ func (environ *Environment) Sync(ctx context.Context, userConfig ...*Config) err
return err
}
if len(userConfig) == 0 {
continue
}
if userConfig[0].Sync.DepositHistory {
if err := environ.SyncService.SyncDepositHistory(ctx, session.Exchange); err != nil {
return err