V1.30.9 env settings fixes
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import datetime
|
||||
import os
|
||||
from firebase_admin import messaging, initialize_app, exceptions
|
||||
|
||||
class FCM:
|
||||
@@ -8,6 +9,8 @@ class FCM:
|
||||
def __init__(self):
|
||||
# To learn more, visit the docs here:
|
||||
# https://cloud.google.com/docs/authentication/getting-started>
|
||||
env = os.environ['GOOGLE_APPLICATION_CREDENTIALS']
|
||||
print(f'ENV: {env}')
|
||||
default_app = initialize_app()
|
||||
|
||||
def send_to_multiple_token(self, title, body, registration_token, image_url = None):
|
||||
|
||||
@@ -29,7 +29,7 @@ class NotificationHistory(models.Model):
|
||||
notification = models.ForeignKey(Notification, on_delete=models.CASCADE)
|
||||
customer = models.ForeignKey(Customer, on_delete=models.CASCADE)
|
||||
response = models.CharField(max_length=255)
|
||||
notification_date = models.DateField(blank=True, null=True)
|
||||
notification_date = models.DateTimeField(blank=True, null=True)
|
||||
|
||||
class Meta:
|
||||
db_table = 'notification_history'
|
||||
|
||||
Reference in New Issue
Block a user