fix: include synology in external tasks query to prevent duplicate creation

The sync query filtered externalProvider for only 'google' and 'outlook',
missing 'synology'. This caused every sync cycle to treat all Synology
tasks as new, creating duplicates each time.

v1.15.10

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
mARTin 2026-03-08 01:37:35 +01:00
parent d9949f42d5
commit aaa3705511
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "my-weekly-todo-list", "name": "my-weekly-todo-list",
"version": "1.15.9", "version": "1.15.10",
"description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view", "description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {

View File

@ -25,7 +25,7 @@ export async function GET(req: NextRequest) {
const allExternalTasks = await prisma.task.findMany({ const allExternalTasks = await prisma.task.findMany({
where: { where: {
userId: user.id, userId: user.id,
externalProvider: { in: ['google', 'outlook'] }, externalProvider: { in: ['google', 'outlook', 'synology'] },
externalId: { not: null }, externalId: { not: null },
deletedAt: null, deletedAt: null,
} }