spee.ch/server/controllers/api/claim/get/createFileData.js

13 lines
263 B
JavaScript
Raw Normal View History

2018-07-26 02:29:59 +02:00
const createFileData = ({ name, claimId, outpoint, contentType: fileType }, { file_name: fileName, download_path: filePath }) => {
2018-04-27 19:24:40 +02:00
return {
name,
claimId,
outpoint,
2018-07-26 02:29:59 +02:00
fileName,
filePath,
fileType,
2018-04-27 19:24:40 +02:00
};
};
2018-07-26 02:21:02 +02:00
module.exports = createFileData;