auto push

This commit is contained in:
2024-04-19 10:18:59 +08:00
parent dab7b8748b
commit c8666e65d1
84 changed files with 410 additions and 287 deletions

View File

@@ -1,5 +1,5 @@
import { AdminLayout } from "@/app_modules/admin/main_dashboard";
import { User_getUserId } from "@/app_modules/fun_global/get_user_token";
import { user_getOneUserId } from "@/app_modules/fun_global/get_user_token";
import { user_getOneById } from "@/app_modules/home/fun/get/get_one_user_by_id";
import React from "react";
@@ -8,7 +8,7 @@ export default async function Layout({
}: {
children: React.ReactNode;
}) {
const userId = await User_getUserId()
const userId = await user_getOneUserId()
const dataUser = await user_getOneById(userId)
const userRole = dataUser?.masterUserRoleId