Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add lastModifiedDate to document tree #158

Open
fynnfluegge opened this issue Nov 13, 2024 · 0 comments
Open

Add lastModifiedDate to document tree #158

fynnfluegge opened this issue Nov 13, 2024 · 0 comments
Labels
good first issue Good for newcomers

Comments

@fynnfluegge
Copy link
Owner

Currently the lastModifiedDate is only available in each document from the api as:

{
  "id":"someId",
  "parentId":"someParent",
  "userId":"userId",
  "title":"some title",
  "content":"some content",
  "lastModifiedDate":"2024-11-13T22:05:58.6491204Z",
  "deleted":false,
  "isPublic":true
}

The lastModifiedDate should be also added in the document tree as:

{
  "id":"someId",
  "documents": [
   {
      "id":"someId",
      "name":"title",
      "parent":"root",
      "pinned":true,
      "lastModifiedDate":"2024-11-13T22:05:58.6491204Z",   // <---- here
      "children":null
    },
    ...
  ]
}

For this save also the document tree in save-document-handler with the lastModifiedDate

@fynnfluegge fynnfluegge added the good first issue Good for newcomers label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant