Skip to content

Commit 3bbcb9f

Browse files
authored
Merge pull request #7 from mocha-bot/feat/add-slug-in-doc
feat: add slug in docs
2 parents 0168421 + 9a94333 commit 3bbcb9f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

dto.go

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import "time"
55
type Room struct {
66
Serial string `json:"serial"`
77
Name string `json:"name"`
8+
Slug string `json:"slug"`
89
Description string `json:"description"`
910
CreatedBy string `json:"created_by"`
1011
TotalChannel int `json:"total_channel"`

room.repository.go

-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ func (r *repository) FetchRoomBySerial(ctx context.Context, serial string) (room
5757
r.serial = ?
5858
GROUP BY
5959
r.serial, r.name, cs.slug, r.description, r.created_by
60-
ORDER BY
61-
r.serial
6260
LIMIT 1
6361
`
6462

0 commit comments

Comments
 (0)