22 lines
482 B
JavaScript
22 lines
482 B
JavaScript
const updateCurrentUserMock = (currentUser) => {
|
|
return {
|
|
data: {
|
|
createdAt: currentUser.createdAt.getTime(),
|
|
email: currentUser.email,
|
|
fullName: currentUser.fullName,
|
|
id: currentUser.id,
|
|
status: currentUser.status,
|
|
updatedAt: currentUser.updatedAt.getTime(),
|
|
},
|
|
meta: {
|
|
count: 1,
|
|
currentPage: null,
|
|
isArray: false,
|
|
totalPages: null,
|
|
type: 'User',
|
|
},
|
|
};
|
|
};
|
|
|
|
export default updateCurrentUserMock;
|