mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: store vacuum and clean (#2293)
* Move all vacuum code into driver * Remove db from Store
This commit is contained in:
@ -41,8 +41,7 @@ func NewTestingServer(ctx context.Context, t *testing.T) (*TestingServer, error)
|
||||
}
|
||||
|
||||
driver := sqlite.NewDriver(db.DBInstance)
|
||||
|
||||
store := store.New(db.DBInstance, driver, profile)
|
||||
store := store.New(driver, profile)
|
||||
server, err := server.NewServer(ctx, profile, store)
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "failed to create server")
|
||||
|
Reference in New Issue
Block a user