From 3727f27d001b72406d21666e1fc007b657dc4326 Mon Sep 17 00:00:00 2001 From: karn Date: Sun, 22 Dec 2024 04:42:06 +0530 Subject: [PATCH] fix upsert_test --- ...stUpsert.update_created_note.approved.json | 22 ++----------------- ...Upsert.valid_note_first_time.approved.json | 22 ++----------------- 2 files changed, 4 insertions(+), 40 deletions(-) diff --git a/routers/notes/testdata/upsert_test.TestUpsert.update_created_note.approved.json b/routers/notes/testdata/upsert_test.TestUpsert.update_created_note.approved.json index cf5b3eb..f249ba7 100644 --- a/routers/notes/testdata/upsert_test.TestUpsert.update_created_note.approved.json +++ b/routers/notes/testdata/upsert_test.TestUpsert.update_created_note.approved.json @@ -4,16 +4,7 @@ "dom": "some text" }, "created": 1234567890, - "createdBy": { - "created": 1234567890, - "defaultWorkspaceId": 1, - "email": "karn@maek.ai", - "id": 1, - "name": "Karn", - "role": "admin", - "updated": 1234567890, - "verified": false - }, + "createdById": 1, "favorite": true, "hasAudios": false, "hasClosedTasks": false, @@ -29,16 +20,7 @@ "id": 1, "trashed": false, "updated": 9999999999, - "updatedBy": { - "created": 1234567890, - "defaultWorkspaceId": 1, - "email": "karn@maek.ai", - "id": 1, - "name": "Karn", - "role": "admin", - "updated": 1234567890, - "verified": false - }, + "updatedById": 1, "uuid": "123", "workspaceId": 1 } diff --git a/routers/notes/testdata/upsert_test.TestUpsert.valid_note_first_time.approved.json b/routers/notes/testdata/upsert_test.TestUpsert.valid_note_first_time.approved.json index 1894649..4019e24 100644 --- a/routers/notes/testdata/upsert_test.TestUpsert.valid_note_first_time.approved.json +++ b/routers/notes/testdata/upsert_test.TestUpsert.valid_note_first_time.approved.json @@ -4,16 +4,7 @@ "dom": "some text" }, "created": 1234567890, - "createdBy": { - "created": 1234567890, - "defaultWorkspaceId": 1, - "email": "karn@maek.ai", - "id": 1, - "name": "Karn", - "role": "admin", - "updated": 1234567890, - "verified": false - }, + "createdById": 1, "favorite": true, "hasAudios": true, "hasClosedTasks": true, @@ -29,16 +20,7 @@ "id": 1, "trashed": false, "updated": 1234567890, - "updatedBy": { - "created": 1234567890, - "defaultWorkspaceId": 1, - "email": "karn@maek.ai", - "id": 1, - "name": "Karn", - "role": "admin", - "updated": 1234567890, - "verified": false - }, + "updatedById": 1, "uuid": "123", "workspaceId": 1 }