merge again
This commit is contained in:
parent
eff14516b4
commit
8fbb4be0ad
1 changed files with 0 additions and 14 deletions
|
@ -274,15 +274,6 @@ export const api: API = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
async getWeeklyReportsForProject(
|
|
||||||
username: string,
|
|
||||||
projectName: string,
|
|
||||||
token: string,
|
|
||||||
) {
|
|
||||||
try {
|
|
||||||
const response = await fetch("/api/getWeeklyReportsUser", {
|
|
||||||
=======
|
|
||||||
async getWeeklyReportsForUser(
|
async getWeeklyReportsForUser(
|
||||||
username: string,
|
username: string,
|
||||||
projectName: string,
|
projectName: string,
|
||||||
|
@ -290,16 +281,11 @@ export const api: API = {
|
||||||
): Promise<APIResponse<WeeklyReport[]>> {
|
): Promise<APIResponse<WeeklyReport[]>> {
|
||||||
try {
|
try {
|
||||||
const response = await fetch(`/api/getWeeklyReportsUser?username=${username}&projectName=${projectName}`, {
|
const response = await fetch(`/api/getWeeklyReportsUser?username=${username}&projectName=${projectName}`, {
|
||||||
>>>>>>> af5813681d11500c0cfe723af1b8d2522bf277d2
|
|
||||||
method: "GET",
|
method: "GET",
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
Authorization: "Bearer " + token,
|
Authorization: "Bearer " + token,
|
||||||
},
|
},
|
||||||
<<<<<<< HEAD
|
|
||||||
body: JSON.stringify({ username, projectName }),
|
|
||||||
=======
|
|
||||||
>>>>>>> af5813681d11500c0cfe723af1b8d2522bf277d2
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
|
|
Loading…
Reference in a new issue