Skip to content

Commit

Permalink
Hotfix -- Resolving Uploaded File View Connection Error (#177)
Browse files Browse the repository at this point in the history
* Bug in census creation system, needed updating to correctly work with the updated response from the fixeddata POST endpoint

* hotfix to repair broken connection to azure storage container in azure uploaded files view
  • Loading branch information
siddheshraze authored Oct 1, 2024
1 parent 864bc70 commit 592cb8c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion frontend/config/sqlrdsdefinitions/timekeeping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ export class OrgCensusToCensusResultMapper {
});

const responseJSON = await response.json();
return responseJSON.createdID;
console.log('response from creation: ', responseJSON);
return responseJSON.createdIDs.census;
}
}

Expand Down
1 change: 1 addition & 0 deletions frontend/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const nextConfig = withBundleAnalyzer({
AZURE_SQL_PORT: process.env.AZURE_SQL_PORT,
AZURE_SQL_SCHEMA: process.env.AZURE_SQL_SCHEMA,
AZURE_SQL_CATALOG_SCHEMA: process.env.AZURE_SQL_CATALOG_SCHEMA,
AZURE_STORAGE_CONNECTION_STRING: process.env.AZURE_STORAGE_CONNECTION_STRING,
FG_PAT: process.env.FG_PAT,
OWNER: process.env.OWNER,
REPO: process.env.REPO
Expand Down
2 changes: 1 addition & 1 deletion frontend/sqlscripting/resetschema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ truncate coremeasurements;
truncate family;
truncate genus;
truncate personnel;
truncate plots;
# truncate plots;
truncate quadratpersonnel;
truncate quadrats;
truncate reference;
Expand Down

0 comments on commit 592cb8c

Please sign in to comment.