mirror of
https://github.com/eiblog/eiblog.git
synced 2026-03-01 00:34:58 +08:00
fix: backup app judge db driver
This commit is contained in:
@@ -18,7 +18,7 @@ type Storage struct{}
|
|||||||
|
|
||||||
// BackupData implements timer.Storage
|
// BackupData implements timer.Storage
|
||||||
func (s Storage) BackupData(now time.Time) error {
|
func (s Storage) BackupData(now time.Time) error {
|
||||||
switch config.Conf.Database.Source {
|
switch config.Conf.Database.Driver {
|
||||||
case "mongodb":
|
case "mongodb":
|
||||||
return backupFromMongoDB(now)
|
return backupFromMongoDB(now)
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user