Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion simple/doxbee-async.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ module.exports = async function doxbee(stream, idOrPath) {
const previousId = file ? file.version : null;
const version = {
userAccountId: fakes.userAccount.id,
date: new Date(),
blobId: blobId,
creatorId: fakes.userAccount.id,
previousId: previousId
Expand Down
5 changes: 2 additions & 3 deletions simple/doxbee-promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ module.exports = function doxbee(stream, idOrPath) {
const previousId = file ? file.version : null;
version = {
userAccountId: fakes.userAccount.id,
date: new Date(),
blobId: blobId,
creatorId: fakes.userAccount.id,
previousId: previousId
Expand All @@ -65,8 +64,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, {
Expand Down
Loading