Skip to content

Commit

Permalink
fix(parser): add invalidation of prefix on update
Browse files Browse the repository at this point in the history
  • Loading branch information
Satont committed Jan 24, 2025
1 parent dd3902f commit d5ba45f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/parser/internal/commands/prefix/setprefix.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ var SetPrefix = &types.DefaultCommand{
}
}

parseCtx.Services.CommandsPrefixCache.Invalidate(ctx, parseCtx.Channel.ID)

return &types.CommandsHandlerResult{Result: []string{"Prefix updated"}}, nil
},
}

0 comments on commit d5ba45f

Please sign in to comment.