mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2026-11-16 02:59:47 +01:00
feat: provide app url (#1087)
This commit is contained in:
1 parent
83251af565
commit
4db718660a
5 files changed
+38
-11
No files matched your search
+2
-2
@@ -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