Skip to content

Commit

Permalink
revert: "fix: update lastModified timestamp on file version restore"
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwynr committed Dec 9, 2024
1 parent 8660ab7 commit c5e066b
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 26 deletions.
8 changes: 0 additions & 8 deletions dist/browser/cloud/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/browser/cloud/index.js.map

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions dist/node/cloud/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/node/cloud/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@filen/sdk",
"version": "0.1.189",
"version": "0.1.191",
"description": "Filen SDK",
"main": "dist/node/index.js",
"browser": "dist/browser/index.js",
Expand Down
10 changes: 0 additions & 10 deletions src/cloud/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1381,20 +1381,10 @@ export class Cloud {
* @returns {Promise<void>}
*/
public async restoreFileVersion({ uuid, currentUUID }: { uuid: string; currentUUID: string }): Promise<void> {
const currentFile = await this.getFile({ uuid: currentUUID })

await this.api.v3().file().version().restore({
uuid,
currentUUID
})

await this.editFileMetadata({
uuid,
metadata: {
...currentFile.metadataDecrypted,
lastModified: Date.now()
}
})
}

/**
Expand Down

0 comments on commit c5e066b

Please sign in to comment.