Skip to content

Commit

Permalink
Sample repo working again
Browse files Browse the repository at this point in the history
  • Loading branch information
Hayden Smith authored and Hayden Smith committed Sep 7, 2024
1 parent 5ce965a commit 7c70ebd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions backend/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ const config = {
JWT_SECRET: 'TESTING2',
PORT: 6080,
COOKIE_EXPIRY: 60 * 60 * 24 * 7,
AIRTABLE_API_KEY: 'keyOJnoA6KHnByQUv',
TERMS: {
sample: {
STUDENT_LIST_SH: 'echo "5555555\n3418003"',
AIRTABLE_BASE: 'appYoRmspUPWynt68',
AIRTABLE_BASE: 'app7CNZud3QDy1IP5',
AIRTABLE_API_KEY: 'patMWMSzpWIIw4ygQ.8905a12dae8ee6ecd484ea4dc3f1f2961f587b9c87a4682407063345298bd802',
TUTOR_ID_LIST: [],
AUDIT_ID_LIST: []
},
Expand Down
3 changes: 2 additions & 1 deletion backend/src/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ const tables = Object.keys(joinSchema);

const generateContent = (term) => {
const basename = config.TERMS[term].AIRTABLE_BASE;
const base = new Airtable({ apiKey: config.AIRTABLE_API_KEY }).base(basename);
const base = new Airtable({ apiKey: config.TERMS[term].AIRTABLE_API_KEY }).base(basename);
console.log(basename, base);
return new Promise((resolve, reject) => {
const obj = {};
Promise.all(tables.map(table => {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/page/Timetable/TimetableLectures.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const TimetableLectures = () => {
</TableCell>}
{getters.loggedIn &&
<TableCell align="left">
<h4>In-person in {rowKey < 2 ? 'Ainsworth G03' : 'Keith Burrows Theatre'}</h4><br />
<h4>{row.location}</h4><br />
<Button variant="contained" onClick={() => {
window.location.href = `${row.call_url_h}`;
}}>Watch Live</Button>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/page/Timetable/TimetableTutorials.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const TimetableTutorials = () => {
{row.call_url_h.includes('http') ? (
<Button variant="contained" onClick={() => {
window.location.href = row.call_url_h;
}}>Watch</Button>
}}>Join</Button>
) : (
<b>{row.call_url_h}</b>
)}
Expand Down

0 comments on commit 7c70ebd

Please sign in to comment.