From e2bc4b42451b57012eb816610518e5567b568c93 Mon Sep 17 00:00:00 2001 From: Borja Robert Date: Mon, 10 Oct 2022 10:22:28 +0200 Subject: [PATCH] =?UTF-8?q?un=20par=20de=20funciones=20para=20a=C3=B1adir?= =?UTF-8?q?=20y=20borrar=20usuarios?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/db/utils.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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