fix: issues

This commit is contained in:
Rogee
2024-09-02 16:20:28 +08:00
parent 73ce8585bb
commit 772421c40d
4 changed files with 12 additions and 4 deletions

View File

@@ -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
}