mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix: tokenCache newInformer fail
This commit is contained in:
@@ -145,6 +145,7 @@ func (manager *STokenCacheManager) insert(ctx context.Context, token string, exp
|
||||
Source: source,
|
||||
Ip: ip,
|
||||
}
|
||||
val.SetModelManager(manager, &val)
|
||||
err := manager.TableSpec().InsertOrUpdate(ctx, &val)
|
||||
return errors.Wrap(err, "InsertOrUpdate")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user