un par de funciones para añadir y borrar usuarios

pull/16/head
Borja Robert 2 years ago
parent a6cb842957
commit e2bc4b4245

@ -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

Loading…
Cancel
Save