Add select by action id
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user