From 5e052455cebb5bc01bf3964dcb33b1061dbbcc87 Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 14 Nov 2022 03:02:56 +0000 Subject: [PATCH] Add more docs --- src/utils/helpers/fileHelpers.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/utils/helpers/fileHelpers.js b/src/utils/helpers/fileHelpers.js index 7a8938b..503d013 100644 --- a/src/utils/helpers/fileHelpers.js +++ b/src/utils/helpers/fileHelpers.js @@ -106,6 +106,12 @@ export async function createFile( return `${fileId}.${extention}`; } +/** + * Gets the files info and the files buffer + * + * @param {string} fileId The id of the file + * @returns The file info and file buffer + */ export async function getFileRaw(fileId) { const fileInfo = await getFileInfo(fileId, true); if (fileInfo == null) {