feat: use db
This commit is contained in:
@@ -37,6 +37,9 @@ func InitClient(cfg *config.Config) error {
|
||||
|
||||
func Close() error {
|
||||
_ = logger.Sync()
|
||||
if db != nil {
|
||||
db.Close()
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user