refactor: add created_at field to user response schema and update dashboard display

This commit is contained in:
Ardeman 2025-03-18 13:08:45 +08:00
parent 0f332fde79
commit 87616ef6bd
2 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@ const userResponseSchema = z.object({
email: z.string().email(),
phone: z.string(),
subscribe: subscribeResponseSchema,
created_at: z.string(),
})
const usersResponseSchema = z.object({
data: z.array(userResponseSchema),

View File

@ -36,7 +36,7 @@ export const UsersPage = () => {
},
{
title: 'Tanggal Daftar',
data: 'subscribe.start_date',
data: 'created_at',
},
{
title: 'User',