Skip to content

Commit

Permalink
fix:key reference
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-Roshan-lab committed Jan 19, 2024
1 parent b394ab6 commit c50c194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/subscribe_to_topic.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import os

def main(context):
key = eval(os.environ['KEY'])
if 'timetable_app' not in firebase_admin._apps:
cred = credentials.Certificate(key)
firebase_admin.initialize_app(cred, name='timetable_app')
key = eval(os.environ['KEY'])
context.log(key)
if (context.req.path == "/"):
return context.res.json({"msg": "working, use /subscribe to register users"})
Expand Down

0 comments on commit c50c194

Please sign in to comment.