Skip to content

Commit

Permalink
fix: update modified date on file save in virtual adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
hperrin committed Aug 11, 2022
1 parent 7bf2dfd commit 77544de
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/adapter-virtual/src/Resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,13 @@ export default class Resource implements ResourceInterface {
this.file = file;
}

if (
!('creationdate' in this.file.properties) ||
this.file.properties.creationdate == null
) {
this.file.properties.creationdate = new Date();
}
this.file.properties.getlastmodified = new Date();
this.collection = 'children' in this.file;
this.exists = true;
}
Expand Down

0 comments on commit 77544de

Please sign in to comment.