🐛 Fix add channel member api doesn't work

This commit is contained in:
2024-12-01 01:54:39 +08:00
parent aac8a3eb54
commit edc864d01e
4 changed files with 29 additions and 12 deletions

View File

@ -76,10 +76,10 @@ func AddChannelMember(user authm.Account, target models.Channel) error {
if err == nil {
cacheManager := cache.New[any](localCache.S)
marshal := marshaler.New(cacheManager)
contx := context.Background()
ctx := context.Background()
_ = marshal.Invalidate(
contx,
ctx,
store.WithInvalidateTags([]string{
fmt.Sprintf("channel#%d", target.ID),
fmt.Sprintf("user#%d", user.ID),