fix selfhost

This commit is contained in:
Emily
2025-01-17 16:44:22 +01:00
parent b59eea47e9
commit fb89c87489
7 changed files with 27 additions and 8 deletions

View File

@@ -66,7 +66,7 @@ export default defineEventHandler(async event => {
const { project, project_id, user } = data;
if (SELFHOSTED !== 'TRUE') {
if (SELFHOSTED !== 'TRUE' && SELFHOSTED !== 'true') {
const PREMIUM_TYPE = project.premium_type;
if (PREMIUM_TYPE === 0) return setResponseStatus(event, 400, 'Project not premium');
}