Skip to content

Commit

Permalink
Merge pull request #134 from BU-Spark/someBugFixes
Browse files Browse the repository at this point in the history
Some bug fixes
  • Loading branch information
raheeqi authored Nov 20, 2024
2 parents 968b043 + 60bf500 commit 53df4b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/graphql/resolvers/graphql_resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@ export const resolvers = {

return uploads.map(upload => ({
...upload,
uploadID: upload.uploadID
uploadID: upload.uploadID,
filename: upload.filename || "No file name", // Default value for missing filenames

}));
},
// CSV Upload Resolver
Expand Down
2 changes: 2 additions & 0 deletions backend/graphql/schemas/type_definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export const typeDefs = gql`
type Uploads {
userID: String!
uploadID: String!
filename: String
timestamp: String!
article_cnt: Int!
status: String!
Expand Down Expand Up @@ -68,6 +69,7 @@ export const typeDefs = gql`
type UploadHistory {
uploadID: String!
filename: String
article_cnt: Int!
message: String!
status: String!
Expand Down

0 comments on commit 53df4b6

Please sign in to comment.