mirror of
https://github.com/balzack/databag.git
synced 2025-02-14 20:49:16 +00:00
Merge branch 'main' into refactor
This commit is contained in:
commit
51a6988c9f
@ -122,7 +122,7 @@ func GetChannels(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, slot := range slots {
|
for _, slot := range slots {
|
||||||
if !typesSet || hasChannelType(types, slot.Channel) {
|
if !typesSet || hasChannelType(types, slot.Channel) || slot.Channel == nil {
|
||||||
shared := isChannelShared(card.GUID, slot.Channel)
|
shared := isChannelShared(card.GUID, slot.Channel)
|
||||||
if channelRevisionSet {
|
if channelRevisionSet {
|
||||||
response = append(response, getChannelRevisionModel(&slot, shared))
|
response = append(response, getChannelRevisionModel(&slot, shared))
|
||||||
|
Loading…
Reference in New Issue
Block a user