Repo cleanup 2

This commit is contained in:
Darren Clarke 2026-02-10 15:58:26 +01:00
parent e941353b64
commit 6ed633f84b
5 changed files with 1052 additions and 6226 deletions

View file

@ -7,8 +7,6 @@
class FormstackController < ApplicationController
skip_before_action :verify_csrf_token
skip_before_action :authenticate_with_current_session
skip_before_action :authenticate_with_token
# POST /api/v1/formstack/webhook
def webhook

View file

@ -31,7 +31,12 @@ class Channel
Rails.logger.debug { 'signal send started' }
Rails.logger.debug { options.inspect }
@signal = ::CdrSignal.new(options[:bot_endpoint], options[:bot_token])
# Use phone_number from channel options
phone_number = options[:phone_number]
raise 'No phone_number configured for Signal channel' unless phone_number
@signal = ::CdrSignal.new(phone_number)
@signal.from_article(article)
end

View file

@ -327,7 +327,7 @@ class CdrSignalPoller
article = Ticket::Article.create!(article_params)
# Create additional articles for extra attachments
attachments[1..].each_with_index do |att, index|
((attachments || [])[1..] || []).each_with_index do |att, index|
Ticket::Article.create!(
article_params.merge(
message_id: "cdr_signal.#{message_id}-#{index + 1}",

7266
pnpm-lock.yaml generated

File diff suppressed because it is too large Load diff

View file

@ -1,3 +1,4 @@
packages:
- 'apps/*'
- 'packages/*'
- 'packages/zammad-addon-link/test'