|
|
@@ -26,6 +26,10 @@ export function createClassroomDataRoutes(withAuth: WithAuth) {
|
|
|
const total = await query.clone().count()
|
|
|
const data = await query.select('*')
|
|
|
.limit(pageSize).offset(offset)
|
|
|
+
|
|
|
+ data.forEach((val) => {
|
|
|
+ val['status'] = Number(val['status'])
|
|
|
+ })
|
|
|
|
|
|
return c.json({
|
|
|
data,
|