Commit e312afc7 authored by Romain Courteaud's avatar Romain Courteaud

Fix MemoryStorage getAttachment

parent 1e991dc6
......@@ -83,7 +83,7 @@
MemoryStorage.prototype.getAttachment = function (param) {
try {
return this._database[param._id].attachments[param._attachment];
return {data: this._database[param._id].attachments[param._attachment]};
} catch (error) {
if (error instanceof TypeError) {
throw new jIO.util.jIOError(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment