Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

racke task find lost career student #638

Merged
merged 2 commits into from Jul 7, 2023
Merged

Conversation

usernaimandrey
Copy link
Contributor

No description provided.

@@ -0,0 +1,32 @@
# frozen_string_literal: true

namespace :n8n_sender do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

неймспейс странный - n8n здесь же просто инструмен-посредник


namespace :n8n_sender do
desc 'This is task find lost student in career track'
task find_lost_student: :environment do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

я бы назвал чтото типа notify_about_lost_students

last_activity_at: member.career_step_members.active.last.created_at
}
end
response = Net::HTTP.post uri, payload.to_json, header
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

в идеале сделать бы апи класс для n8n куда все это низкоуровневые вызовы положить

@usernaimandrey usernaimandrey merged commit 6b5438f into main Jul 7, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants