Skip to content

Commit

Permalink
♻️ refactor: updated codebase #9
Browse files Browse the repository at this point in the history
  • Loading branch information
pnguyen215 committed Feb 7, 2024
1 parent 4e44b81 commit 88ea85b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions query/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ func (m Modify) Available() bool {
return m.Size() > 0
}

func (m Modify) Fire() bool {
return len(m.Transform()) > 0
}

func (m Modify) Transform() map[string]interface{} {
values := builder.NewMapBuilder()
for k, e := range m {
Expand Down

0 comments on commit 88ea85b

Please sign in to comment.