Skip to content

Commit 7eef694

Browse files
committed
tweaks to the response returned by code view API
1 parent b14fc30 commit 7eef694

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

API/codeFileViewApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ async function codeFileViewApi(repoId, fileName) {
4141
} else {
4242
return {
4343
codeFileDetails: {
44-
language: "",
44+
language: "Invalid",
4545
fileData: fileContent,
4646
fileCommit: commit,
4747
prism: "markdown",

global/gqlGlobalAPISchema.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ const globalAPISchema = new buildSchema(
107107
type langType{
108108
language: String
109109
fileCommit: String
110-
fileData: [String!]
110+
fileData: [String!]!
111111
prism: String
112112
}
113113

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gitconvex",
3-
"version": "1.1.4",
3+
"version": "1.1.5",
44
"description": "Git web UI client to manage your git repositories",
55
"main": "server.js",
66
"bin": {
@@ -32,6 +32,7 @@
3232
},
3333
"homepage": "https://github.com/neel1996/gitconvex#readme",
3434
"dependencies": {
35+
"@itassistors/langline": "0.0.2",
3536
"axios": "^0.19.2",
3637
"child_process": "^1.0.2",
3738
"cors": "^2.8.5",

0 commit comments

Comments
 (0)