diff --git a/src/lib/db/utils.js b/src/lib/db/utils.js index 8e2685f..5b75f81 100644 --- a/src/lib/db/utils.js +++ b/src/lib/db/utils.js @@ -1,12 +1,14 @@ import { db } from '$lib/db/db'; -/** What all actions on DB return +/** +* Return of functions that change change DB, either 'success' or 'failure' with explanation * @typedef {Object} DBActionResult * @property {string} [error] * @property {string} [success] */ -/** Adds user to the db +/** +* @function addUserToDB Adds user to the db * @param {string} email * @param {string} passwordHash * @param {boolean} isAdmin