fix: fix time bug in gen-archive-tuples

This commit is contained in:
2025-02-12 16:48:43 +01:00
parent 1ee6b1f80f
commit 412068c1c0
2 changed files with 7 additions and 2 deletions

View File

@@ -5,8 +5,8 @@ psql="psql -d app -t -A -F',' -c"
query="$k $psql"
h="user_type,user_id,relation,object_type,object_id,condition_name,condition_context"
term="\"{\"\"start_time\"\": \"\"2025-01-01T00:00:00Z\"\", \"\"end_time\"\": \"\"2025-01-01T01:00:00Z\"\"}\""
ticket="\"{\"\"tasks\"\": [ \"\"*\"\" ], \"\"quota\"\": \"\"-1.0\"\", \"\"start_time\"\": \"\"2025-01-01T00:00:00Z\"\", \"\"end_time\"\": \"\"2025-01-01T01:00:00Z\"\"}\""
term="\"{\"\"start_time\"\": \"\"2025-01-01T00:00:00Z\"\", \"\"end_time\"\": \"\"2025-01-01T00:00:00Z\"\"}\""
ticket="\"{\"\"tasks\"\": [ \"\"*\"\" ], \"\"quota\"\": \"\"-1.0\"\", \"\"start_time\"\": \"\"2025-01-01T00:00:00Z\"\", \"\"end_time\"\": \"\"2025-01-01T00:00:00Z\"\"}\""
# principal of primary archives
$query "select a.archive_id from archives as

View File

@@ -7,4 +7,9 @@ pkgs.mkShell {
FGA_API_URL = "https://openfga.dev.oceanbox.io";
FGA_STORE_ID = "01JKTQKHSGJH4RW04WFVCPWNTE";
FGA_MODEL_ID = "01JKTQMXBE7219XRYE3NGYNXSR";
# FGA_API_URL = "https://openfga.srv.oceanbox.io";
# FGA_STORE_ID = "01JKTZXMP7ANN4GG2P5W8Y56M6";
# FGA_MODEL_ID = "01JKTZYMCZZBVSBG66W27XMW0A";
}