fix: remove dueDateTime from MS Graph API select query to prevent 400 Bad Request
This commit is contained in:
parent
f30db7465c
commit
745e84d699
@ -97,7 +97,7 @@ export const fetchMsTodoTasks = async (
|
|||||||
const params = new URLSearchParams({
|
const params = new URLSearchParams({
|
||||||
'$filter': "status ne 'completed'",
|
'$filter': "status ne 'completed'",
|
||||||
'$top': '100',
|
'$top': '100',
|
||||||
'$select': 'id,title,body,status,importance,dueDateTime,createdDateTime,lastModifiedDateTime'
|
'$select': 'id,title,body,status,importance,createdDateTime,lastModifiedDateTime'
|
||||||
});
|
});
|
||||||
|
|
||||||
const response = await fetch(
|
const response = await fetch(
|
||||||
@ -128,7 +128,7 @@ export const fetchMsTodoTasksForSync = async (
|
|||||||
listId: string,
|
listId: string,
|
||||||
modifiedSince?: string
|
modifiedSince?: string
|
||||||
): Promise<MicrosoftTodoTask[]> => {
|
): Promise<MicrosoftTodoTask[]> => {
|
||||||
const selectFields = 'id,title,body,status,dueDateTime,createdDateTime,lastModifiedDateTime';
|
const selectFields = 'id,title,body,status,createdDateTime,lastModifiedDateTime';
|
||||||
|
|
||||||
const params = new URLSearchParams({
|
const params = new URLSearchParams({
|
||||||
'$top': '100',
|
'$top': '100',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user