tiny bit of moving around

This commit is contained in:
tsmethurst
2021-03-07 13:05:33 +01:00
parent 59963090cb
commit ac9c6b6251
7 changed files with 158 additions and 105 deletions

View File

@@ -29,8 +29,8 @@ import (
// Initialize will initialize the database given in the config for use with GoToSocial
var Initialize action.GTSAction = func(ctx context.Context, c *config.Config, log *logrus.Logger) error {
db, err := New(ctx, c, log)
if err != nil {
return err
}
return db.CreateSchema(ctx)
if err != nil {
return err
}
return db.CreateSchema(ctx)
}