V1.30.8 notification fix

This commit is contained in:
Tibor Bossanyi (Freelancer) 2021-10-02 14:48:00 +02:00
parent 3ddddf906a
commit 95ead3c9d7

View File

@ -22,9 +22,9 @@ class Notification:
if hook_sql == None:
customers = getattr(hook, hook_function)()
else:
print(f'execute {hook_function} with sql {hook_sql}')
customers = getattr(hook, hook_function)(hook_sql)
print(f' --- Count of notifying customers: {len(list(customers))} --- ')
for customer in customers:
if customer.firebase_reg_token != None and customer.customer_id != None:
print(f'-- Notify Customer {customer.customer_id}')