refactor: Use internal namespace for the existing API
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { createRole } from './role';
|
||||
import { createRole } from './role.js';
|
||||
import { faker } from '@faker-js/faker';
|
||||
import User from '../../src/models/user';
|
||||
import User from '../../src/models/user.js';
|
||||
|
||||
export const createUser = async (params = {}) => {
|
||||
params.roleId = params?.roleId || (await createRole()).id;
|
||||
|
||||
Reference in New Issue
Block a user