We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5e7527a + b800db5 commit 6440669Copy full SHA for 6440669
room.repository.go
@@ -38,7 +38,7 @@ func (r *repository) FetchRoomBySerial(ctx context.Context, serial string) (room
38
Select("r.serial, r.name, sv.slug, r.description, r.created_by, COUNT(rc.channel_serial) AS total_channel, 0.0 AS rate, r.created_at, r.updated_at").
39
Joins("LEFT JOIN room_channel rc ON r.serial = rc.room_serial").
40
Joins("LEFT JOIN reference_tag rt ON r.serial = rt.reference").
41
- Joins("LEFT JOIN slug_versions sv ON r.serial = sv.reference AND sv.is_current = 1 AND sv.type = 'room' AND sv.deleted_at IS NULL").
+ Joins("LEFT JOIN slug_version sv ON r.serial = sv.reference AND sv.is_current = 1 AND sv.type = 'room' AND sv.deleted_at IS NULL").
42
Where("r.serial = ?", serial).
43
Group("r.serial, r.name, r.description, r.created_by").
44
First(&room).Error
0 commit comments