Skip to content

Commit

Permalink
fix(functions): mount secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Oct 1, 2024
1 parent e11f0b2 commit 6fa923f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions functions/main.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from os import getenv

import arcgis
from firebase_admin import initialize_app
from firebase_functions import https_fn, options
from firebase_functions.params import SecretParam
from google.cloud import storage

from utilities import UnzipData, get_secrets
Expand Down Expand Up @@ -134,7 +133,10 @@ def recreate_item(item_id, category, generation):
return published_item.id


@https_fn.on_call(memory=options.MemoryOption.MB_512)
SECRETS = SecretParam("secrets")


@https_fn.on_call(memory=options.MemoryOption.MB_512, secrets=[SECRETS])
def restore(request: https_fn.CallableRequest) -> str:
print("begin request")
item_id = request.data.get("item_id")
Expand Down

0 comments on commit 6fa923f

Please sign in to comment.