Add select by action id

This commit is contained in:
2020-12-29 16:08:31 -06:00
parent 50bbcdc71d
commit ad47895597
5 changed files with 89 additions and 4 deletions

View File

@@ -20,3 +20,8 @@ type Action struct {
func (m *Model) Actions() ([]*Action, error) {
return m.SelectActions()
}
// Action returns a single action from its ID
func (m *Model) Action(id int) (*Action, error) {
return m.SelectActionByID(id)
}