From 3c171133d546c3bfa26689bea2017b10b9916dcb Mon Sep 17 00:00:00 2001 From: Camillo Bruni Date: Tue, 28 Oct 2025 17:52:23 +0100 Subject: [PATCH 1/2] update --- simple/doxbee-async.js | 2 +- simple/doxbee-promise.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/simple/doxbee-async.js b/simple/doxbee-async.js index 40b091a7..6788ec45 100644 --- a/simple/doxbee-async.js +++ b/simple/doxbee-async.js @@ -49,7 +49,7 @@ module.exports = async function doxbee(stream, idOrPath) { const previousId = file ? file.version : null; const version = { userAccountId: fakes.userAccount.id, - date: new Date(), + date: {}, blobId: blobId, creatorId: fakes.userAccount.id, previousId: previousId diff --git a/simple/doxbee-promise.js b/simple/doxbee-promise.js index 1897ab6e..b2b4ee0b 100644 --- a/simple/doxbee-promise.js +++ b/simple/doxbee-promise.js @@ -55,7 +55,7 @@ module.exports = function doxbee(stream, idOrPath) { const previousId = file ? file.version : null; version = { userAccountId: fakes.userAccount.id, - date: new Date(), + date: {}, blobId: blobId, creatorId: fakes.userAccount.id, previousId: previousId @@ -65,8 +65,8 @@ module.exports = function doxbee(stream, idOrPath) { }) .then(_ => { if (!file) { - const splitPath = idOrPath.split("/"); - const fileName = splitPath[splitPath.length - 1]; + const splitPath = idOrPath.lastIndexOf("/") + 1; + const fileName = idOrPath.substring(splitPath); const newId = fakes.uuid.v1(); return fakes.self .createQuery(idOrPath, { From 91edff282a8a2d52b7f024a0ef90d98e83099fcd Mon Sep 17 00:00:00 2001 From: Camillo Bruni Date: Tue, 28 Oct 2025 17:56:48 +0100 Subject: [PATCH 2/2] futher cleanup --- simple/doxbee-async.js | 1 - simple/doxbee-promise.js | 1 - 2 files changed, 2 deletions(-) diff --git a/simple/doxbee-async.js b/simple/doxbee-async.js index 6788ec45..e505a5ff 100644 --- a/simple/doxbee-async.js +++ b/simple/doxbee-async.js @@ -49,7 +49,6 @@ module.exports = async function doxbee(stream, idOrPath) { const previousId = file ? file.version : null; const version = { userAccountId: fakes.userAccount.id, - date: {}, blobId: blobId, creatorId: fakes.userAccount.id, previousId: previousId diff --git a/simple/doxbee-promise.js b/simple/doxbee-promise.js index b2b4ee0b..aabcd86c 100644 --- a/simple/doxbee-promise.js +++ b/simple/doxbee-promise.js @@ -55,7 +55,6 @@ module.exports = function doxbee(stream, idOrPath) { const previousId = file ? file.version : null; version = { userAccountId: fakes.userAccount.id, - date: {}, blobId: blobId, creatorId: fakes.userAccount.id, previousId: previousId