mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-11 00:08:37 +01:00
add onboarding and feedback models
This commit is contained in:
9
dashboard/server/api/onboarding/exist.ts
Normal file
9
dashboard/server/api/onboarding/exist.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
import { OnboardingModel } from '@schema/OnboardingSchema';
|
||||
|
||||
export default defineEventHandler(async event => {
|
||||
const data = await getRequestData(event);
|
||||
if (!data) return;
|
||||
const exist = await OnboardingModel.exists({ user_id: data.user.id });
|
||||
return { exist }
|
||||
});
|
||||
Reference in New Issue
Block a user