feat: use db
This commit is contained in:
@@ -51,8 +51,8 @@ func exportCmd(ctx context.Context) error {
|
||||
return errors.New("channel not found")
|
||||
}
|
||||
|
||||
cfg := NewChannelConfig(channel.GetID())
|
||||
if err := cfg.Read(ctx); err != nil {
|
||||
cfg := NewDBChannel(channel.GetID(), channel.Username, channel.Title)
|
||||
if err := cfg.Get(ctx); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user