added eslint norme to code
This commit is contained in:
parent
c086c27c4a
commit
ace8367f77
9 changed files with 128 additions and 157 deletions
|
|
@ -20,7 +20,7 @@
|
|||
"fastify-plugin": "^5.1.0",
|
||||
"joi": "^18.0.2",
|
||||
"otp": "^1.1.2",
|
||||
"typebox": "^1.0.59",
|
||||
"typebox": "^1.0.61",
|
||||
"uuidv7": "^1.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
|||
|
|
@ -30,11 +30,10 @@ export const BlockedImpl: Omit<IBlockedDb, keyof Database> = {
|
|||
this.prepare('DELETE FROM blocked WHERE user = @id AND blocked = @blocked').run({ id, blocked });
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Get all blocked user
|
||||
*
|
||||
* @param
|
||||
* @param
|
||||
*
|
||||
* @returns The list of users if it exists, undefined otherwise
|
||||
*/
|
||||
|
|
@ -64,7 +63,6 @@ export type BlockedData = {
|
|||
* @returns The blocked if it exists, undefined otherwise
|
||||
*/
|
||||
export function blockedFromRow(row?: Partial<BlockedData>): BlockedData | undefined {
|
||||
console.log('HELLO ?????', row);
|
||||
if (isNullish(row)) return undefined;
|
||||
if (isNullish(row.id)) return undefined;
|
||||
if (isNullish(row.user)) return undefined;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue