mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2026-02-08 06:13:29 +01:00
feat: provide app url (#1087)
This commit is contained in:
@@ -260,7 +260,7 @@ event = json.loads(sys.argv[1])
|
||||
body = json.loads(event["body"])
|
||||
|
||||
# Connect to the PocketBase server
|
||||
client = PocketBase('http://127.0.0.1:8090')
|
||||
client = PocketBase(os.environ["CATALYST_APP_URL"])
|
||||
client.auth_store.save(token=os.environ["CATALYST_TOKEN"])
|
||||
|
||||
# Create a new ticket
|
||||
@@ -281,7 +281,7 @@ from pocketbase import PocketBase
|
||||
ticket = json.loads(sys.argv[1])
|
||||
|
||||
# Connect to the PocketBase server
|
||||
client = PocketBase('http://127.0.0.1:8090')
|
||||
client = PocketBase(os.environ["CATALYST_APP_URL"])
|
||||
client.auth_store.save(token=os.environ["CATALYST_TOKEN"])
|
||||
|
||||
# Get a random user
|
||||
|
||||
Reference in New Issue
Block a user