Skip to content

Commit

Permalink
DEVP-3440 team rename (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
MickStanciu authored Dec 19, 2024
1 parent fb017e8 commit 9cd54dc
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions SafetyCulture.pq
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,8 @@ IssueType = type table [
modified_at = nullable datetimezone,
completed_at = nullable datetimezone,
asset_id = nullable text,
unique_id = nullable text
unique_id = nullable text,
occurred_at = nullable datetimezone
];

IssueTimelineItemType = type table [
Expand Down Expand Up @@ -558,15 +559,15 @@ CreateNavTable = (group as text) as table =>
GetEntity = (url as text, entity as text, optional query as record) as table =>
let
now = DateTimeZone.ToText(DateTimeZone.UtcNow(), "yyyy-MM-ddTHH:mm:ss"),
withQuery =
if (query <> null)
withQuery =
if (query <> null)
then entity & "?" & Uri.BuildQueryString(query)
else if (query = null and entity = "training-course-progress")
then entity & "?completion_status=COMPLETION_STATUS_COMPLETED&limit=100"
else if (query = null and entity = "inspection_items")
then entity & "?modified_before="&now&"Z"
then entity & "?modified_before="&now&"Z"
else entity,

fullUrl = Uri.Combine(url, withQuery),
schema = GetSchemaForEntity(entity),
result = GetAllPagesByNextLink(fullUrl, schema),
Expand Down

0 comments on commit 9cd54dc

Please sign in to comment.