Skip to content

Commit

Permalink
Merge branch 'main' into INTF23-updateappschema
Browse files Browse the repository at this point in the history
  • Loading branch information
HeetShah committed Nov 2, 2023
2 parents a06d29e + 8e45bb9 commit 1afb798
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/typescript/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { sequelize } from "./models";
import schema from "./graphql";
import Application from "./models/application.model";


const CORS_ALLOW_LIST = [
"http://localhost:3000",
"https://uw-blueprint-starter-code.firebaseapp.com",
Expand Down Expand Up @@ -63,6 +64,7 @@ admin.initializeApp({
const db = admin.database();
const ref = db.ref("studentApplications");


app.get("/termApplications", async (req, res) => {
ref.orderByChild("term").equalTo("Fall 2023").once("value", function (snapshot) {

Check warning on line 69 in backend/typescript/server.ts

View workflow job for this annotation

GitHub Actions / run-lint

Unexpected unnamed function
const applications: Application[] = [];
Expand All @@ -71,7 +73,7 @@ app.get("/termApplications", async (req, res) => {
});
res.status(200).json(applications);
})});

app.get("/applications", async (req, res) => {
try {
const snapshot = await ref.once("value");
Expand Down

0 comments on commit 1afb798

Please sign in to comment.