3
0

Fix minor typos in compose

This commit is contained in:
Denis Arh
2019-09-02 08:29:28 +02:00
parent 0792f04262
commit 78660c47ec
4 changed files with 5 additions and 9 deletions
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',
-4
View File
@@ -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,
+3 -3
View File
@@ -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)
})
}