fix: error query
This commit is contained in:
parent
5c8c974c49
commit
0d8a28b203
2 changed files with 8 additions and 0 deletions
|
@ -10,6 +10,7 @@ function createRequestObject(
|
|||
classid: string,
|
||||
assignmentid: string
|
||||
): {
|
||||
query: {full: string},
|
||||
params: { classid: string; id: string };
|
||||
} {
|
||||
return {
|
||||
|
@ -17,6 +18,9 @@ function createRequestObject(
|
|||
classid: classid,
|
||||
id: assignmentid,
|
||||
},
|
||||
query: {
|
||||
full: 'true'
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -18,6 +18,7 @@ function createRequestObject(
|
|||
assignmentid: string,
|
||||
groupNumber: string
|
||||
): {
|
||||
query: { full: string }
|
||||
params: { classid: string; groupid: string; assignmentid: string };
|
||||
} {
|
||||
return {
|
||||
|
@ -26,6 +27,9 @@ function createRequestObject(
|
|||
assignmentid: assignmentid,
|
||||
groupid: groupNumber,
|
||||
},
|
||||
query: {
|
||||
full: 'true'
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue