Skip to content

Commit f40b630

Browse files
committed
refactor(firebase): use send_each() instead of send_all()
The latter is now deprecated: firebase/firebase-admin-python#706 Signed-off-by: Akhil Narang <[email protected]>
1 parent db876eb commit f40b630

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/cron.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ async def fcm_notification_cron(ctx: dict) -> None:
7272
if messages:
7373
app_name = ctx.get("job_id", uuid.uuid4())
7474
app = initialize_app(name=app_name, credential=credentials.Certificate(settings.GOOGLE_APPLICATION_CREDENTIALS))
75-
messaging.send_all(messages=messages, app=app)
75+
messaging.send_each(messages=messages, app=app)
7676
delete_app(app)
7777
logging.info("Sent notification")
7878
else:

0 commit comments

Comments
 (0)