chore(bolt): bolt macro impl. is a macro service again

pull/11079/head^2
Leonardo Di Donato 2018-12-20 19:16:01 +01:00 committed by Leo Di Donato
parent 0a5584e994
commit edc2f703c3
1 changed files with 2 additions and 1 deletions

View File

@ -20,7 +20,8 @@ func (c *Client) initializeMacros(ctx context.Context, tx *bolt.Tx) error {
}
// FindMacros returns all macros in the store
func (c *Client) FindMacros(ctx context.Context) ([]*platform.Macro, error) {
func (c *Client) FindMacros(ctx context.Context, filter platform.MacroFilter, opt ...platform.FindOptions) ([]*platform.Macro, error) {
// todo(leodido) > actually filter macros
op := getOp(platform.OpFindMacros)
macros := []*platform.Macro{}
err := c.db.View(func(tx *bolt.Tx) error {