Imported libraries, removed next-basics.
This commit is contained in:
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
||||
import { canUpdateUser, canViewUser, canDeleteUser } from 'lib/auth';
|
||||
import { getUser, getUserByUsername, updateUser, deleteUser } from 'queries';
|
||||
import { json, unauthorized, badRequest, ok } from 'lib/response';
|
||||
import { hashPassword } from 'next-basics';
|
||||
import { hashPassword } from 'lib/auth';
|
||||
import { parseRequest } from 'lib/request';
|
||||
|
||||
export async function GET(request: Request, { params }: { params: Promise<{ userId: string }> }) {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { z } from 'zod';
|
||||
import { hashPassword } from 'next-basics';
|
||||
import { canCreateUser } from 'lib/auth';
|
||||
import { hashPassword, canCreateUser } from 'lib/auth';
|
||||
import { ROLES } from 'lib/constants';
|
||||
import { uuid } from 'lib/crypto';
|
||||
import { parseRequest } from 'lib/request';
|
||||
|
||||
Reference in New Issue
Block a user