Skip to content
Merged
Changes from 3 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions models/taskRequests.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,16 @@
const taskRequestSnapshot = await taskRequestsCollection.doc(taskRequestId).get();
const taskRequestData = taskRequestSnapshot.data();

if (taskRequestData) {
taskRequestData.id = taskRequestSnapshot.id;
taskRequestData.url = new URL(`/taskRequests/${taskRequestData.id}`, config.get("services.rdsUi.baseUrl"));
if (!taskRequestData){

Check failure on line 174 in models/taskRequests.js

View workflow job for this annotation

GitHub Actions / build (20.11.x)

Insert `·`
return {
taskRequestData,
taskRequestExists: false,
};
}

Check failure on line 180 in models/taskRequests.js

View workflow job for this annotation

GitHub Actions / build (20.11.x)

Trailing spaces not allowed

Check failure on line 180 in models/taskRequests.js

View workflow job for this annotation

GitHub Actions / build (20.11.x)

Delete `····`
taskRequestData.id = taskRequestSnapshot.id;
taskRequestData.url = new URL(`/taskRequests/${taskRequestData.id}`, config.get("services.rdsUi.baseUrl"));

return {
taskRequestData,
taskRequestExists: true,
Expand Down
Loading