Skip to content

Commit

Permalink
Merge pull request #94 from sonroyaalmerol/fix-wrongtype
Browse files Browse the repository at this point in the history
Fix redis WRONGTYPE error on stream
  • Loading branch information
sonroyaalmerol authored Aug 22, 2024
2 parents 4d8437e + 73e265c commit 9522353
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func (db *Instance) GetStreamBySlug(slug string) (StreamInfo, error) {
if len(keys) > 0 {
results, err := db.Redis.Pipelined(db.Ctx, func(pipe redis.Pipeliner) error {
for _, key := range keys {
pipe.HGetAll(db.Ctx, key)
pipe.Get(db.Ctx, key)
}
return nil
})
Expand Down

0 comments on commit 9522353

Please sign in to comment.