fix: issues
This commit is contained in:
@@ -47,7 +47,11 @@ func exportCmd(ctx context.Context) error {
|
||||
}
|
||||
}
|
||||
|
||||
cfg := NewChannelConfig(channel.ID)
|
||||
if channel.GetID() == 0 {
|
||||
return errors.New("channel not found")
|
||||
}
|
||||
|
||||
cfg := NewChannelConfig(channel.GetID())
|
||||
if err := cfg.Read(ctx); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user