diff --git a/app/types/attachment/write_attachment_data.js b/app/types/attachment/write_attachment_data.js index 947ea6785e..99a8cfb0cb 100644 --- a/app/types/attachment/write_attachment_data.js +++ b/app/types/attachment/write_attachment_data.js @@ -35,6 +35,6 @@ exports._getAttachmentName = () => { // _getAttachmentPath :: Unit -> IO Path exports._getAttachmentPath = () => { const name = exports._getAttachmentName(); - const prefix = name.slice(0, 3); + const prefix = name.slice(0, 2); return Path.join(prefix, name); }; diff --git a/test/app/types/attachment/write_attachment_data_test.js b/test/app/types/attachment/write_attachment_data_test.js index 61a992d883..ae7d768d52 100644 --- a/test/app/types/attachment/write_attachment_data_test.js +++ b/test/app/types/attachment/write_attachment_data_test.js @@ -12,7 +12,7 @@ const { } = require('../../../../app/types/attachment/write_attachment_data'); -const PREFIX_LENGTH = 3; +const PREFIX_LENGTH = 2; const NUM_SEPARATORS = 1; const NAME_LENGTH = 64; const PATH_LENGTH = PREFIX_LENGTH + NUM_SEPARATORS + NAME_LENGTH;