Fix minor typos in compose
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -26,7 +26,7 @@ CREATE TABLE IF NOT EXISTS compose_automation_script (
|
||||
|
||||
CREATE TABLE IF NOT EXISTS compose_automation_trigger (
|
||||
`id` BIGINT(20) UNSIGNED NOT NULL,
|
||||
`rel_script` BIGINT(20) UNSIGNED NOT NULL COMMENT 'Script that is trigger',
|
||||
`rel_script` BIGINT(20) UNSIGNED NOT NULL COMMENT 'Script that is triggered',
|
||||
|
||||
`resource` VARCHAR(128) NOT NULL COMMENT 'Resource triggering the event',
|
||||
`event` VARCHAR(128) NOT NULL COMMENT 'Event triggered',
|
||||
|
||||
@@ -63,10 +63,6 @@ func (AutomationTrigger) New() *AutomationTrigger {
|
||||
|
||||
func (ctrl AutomationTrigger) List(ctx context.Context, r *request.AutomationTriggerList) (interface{}, error) {
|
||||
set, filter, err := ctrl.triggers.Find(ctx, automation.TriggerFilter{
|
||||
// @todo namespace filtering
|
||||
// Might be a bit tricky as triggers themselves not know about namespaces
|
||||
// Namespace: r.NamespaceID
|
||||
|
||||
Resource: r.Resource,
|
||||
Event: r.Event,
|
||||
ScriptID: r.ScriptID,
|
||||
|
||||
@@ -17,8 +17,8 @@ func MountRoutes(r chi.Router) {
|
||||
notification = Notification{}.New()
|
||||
attachment = Attachment{}.New()
|
||||
|
||||
automationScript = AutomationScript{}.New()
|
||||
automationTrgger = AutomationTrigger{}.New()
|
||||
automationScript = AutomationScript{}.New()
|
||||
automationTrigger = AutomationTrigger{}.New()
|
||||
)
|
||||
|
||||
// Initialize handlers & controllers.
|
||||
@@ -41,6 +41,6 @@ func MountRoutes(r chi.Router) {
|
||||
handlers.NewPermissions(Permissions{}.New()).MountRoutes(r)
|
||||
|
||||
handlers.NewAutomationScript(automationScript).MountRoutes(r)
|
||||
handlers.NewAutomationTrigger(automationTrgger).MountRoutes(r)
|
||||
handlers.NewAutomationTrigger(automationTrigger).MountRoutes(r)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user