feat(03-01): populate calendarEvents.objectUrl in sync.ts from obj.url
- Set objectUrl: obj.url ?? null in both .values() and .onDuplicateKeyUpdate({ set: {} })
alongside existing etag assignment — stores CalDAV object URL for If-Match on
update/delete (D-08)
- All existing broker/sync tests pass (47 total)
This commit is contained in:
@@ -106,6 +106,7 @@ export async function syncCalendar(
|
|||||||
calendarId: cal.id,
|
calendarId: cal.id,
|
||||||
uid,
|
uid,
|
||||||
etag: obj.etag ?? null,
|
etag: obj.etag ?? null,
|
||||||
|
objectUrl: obj.url ?? null,
|
||||||
rawVevent: obj.data as string,
|
rawVevent: obj.data as string,
|
||||||
dtstartUtc: dtstartUtcValue,
|
dtstartUtc: dtstartUtcValue,
|
||||||
dtstartDate: dtstartDateValue,
|
dtstartDate: dtstartDateValue,
|
||||||
@@ -115,6 +116,7 @@ export async function syncCalendar(
|
|||||||
.onDuplicateKeyUpdate({
|
.onDuplicateKeyUpdate({
|
||||||
set: {
|
set: {
|
||||||
etag: obj.etag ?? null,
|
etag: obj.etag ?? null,
|
||||||
|
objectUrl: obj.url ?? null,
|
||||||
rawVevent: obj.data as string,
|
rawVevent: obj.data as string,
|
||||||
dtstartUtc: dtstartUtcValue,
|
dtstartUtc: dtstartUtcValue,
|
||||||
dtstartDate: dtstartDateValue,
|
dtstartDate: dtstartDateValue,
|
||||||
|
|||||||
Reference in New Issue
Block a user