Set table name in store

This commit is contained in:
Asim Aslam 2020-05-01 18:24:35 +01:00
parent b3915b6020
commit 38cdb9cc2f

View File

@ -110,7 +110,7 @@ func (s *service) Init(opts ...Option) {
// Explicitly set the table name to the service name
name := s.opts.Cmd.App().Name
store.DefaultStore.Init(store.Table(name))
s.opts.Store.Init(store.Table(name))
// TODO: replace Cmd.Init with config.Load
// Right now we're just going to load a token