~singpolyma/sgx-jmp

303e8398194d4e68dc0b0c4a8696a45d659ad9e2 — Stephen Paul Weber 1 year, 2 months ago d1dc3e7
Put CDRs behind a feature flag
2 files changed, 3 insertions(+), 2 deletions(-)

M lib/customer.rb
M sgx_jmp.rb
M lib/customer.rb => lib/customer.rb +1 -1
@@ 43,7 43,7 @@ class Customer
		klass.new(
			customer_id, jid,
			plan: CustomerPlan.extract(customer_id, **kwargs),
			**kwargs.slice(:balance, :sgx, :tndetails, *keys)
			**kwargs.slice(:balance, :sgx, :tndetails, :feature_flags, *keys)
		)
	end


M sgx_jmp.rb => sgx_jmp.rb +2 -1
@@ 528,7 528,8 @@ Command.new(

Command.new(
	"cdrs",
	"Show Call Logs"
	"📲 Show Call Logs",
	list_for: ->(feature_flags:, **) { feature_flags.include?(:cdrs) }
) {
	report_for = ((Date.today << 1)..Date.today)