Account for gitea credentials in cache and watchers
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
parent
b4e92a69c9
commit
08511e2e7f
6 changed files with 24 additions and 12 deletions
|
|
@ -124,7 +124,7 @@ func (r *basePoolManager) handleCredentialsUpdate(credentials params.ForgeCreden
|
|||
func (r *basePoolManager) handleWatcherEvent(event common.ChangePayload) {
|
||||
dbEntityType := common.DatabaseEntityType(r.entity.EntityType)
|
||||
switch event.EntityType {
|
||||
case common.GithubCredentialsEntityType:
|
||||
case common.GithubCredentialsEntityType, common.GiteaCredentialsEntityType:
|
||||
credentials, ok := event.Payload.(params.ForgeCredentials)
|
||||
if !ok {
|
||||
slog.ErrorContext(r.ctx, "failed to cast payload to github credentials")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue