From cb2475cff1a0e9bd7f39be22cd03c63c871c6528 Mon Sep 17 00:00:00 2001 From: Rafi Arrafif Date: Thu, 5 Mar 2026 17:48:35 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20docs:=20add=20overview=20section?= =?UTF-8?q?=20to=20README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 27 ++++++++++--------- .../services/.fuse_hidden000178f900000004 | 19 +++++++++++++ 2 files changed, 34 insertions(+), 12 deletions(-) create mode 100644 src/modules/heroBanner/services/.fuse_hidden000178f900000004 diff --git a/README.md b/README.md index a5e7166..e36ed86 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,18 @@ -# Elysia with Bun runtime +
+ +

A simple anime streaming platform with community feature integration

+
-## Getting Started -To get started with this template, simply paste this command into your terminal: -```bash -bun create elysia ./elysia-example -``` +## Overview -## Development -To start the development server run: -```bash -bun run dev -``` +Syzne TV was born from a simple frustration: watching anime online shouldn’t feel like fighting through layers of intrusive ads and popups. Many platforms today prioritize aggressive monetization over user experience, and somewhere along the way, the joy of watching got lost. -Open http://localhost:3000/ with your browser to see the result. \ No newline at end of file +## Tech Stack + +- **Runtime**: Bun (v1.3) +- **Framework**: Elysia (latest) +- **Database**: PostgreSQL 18 +- **ORM**: Prisma (v7.0) +- **Caching**: Redis (v8.4) +- **Authentication**: JWT +- **Monitoring**: Sentry diff --git a/src/modules/heroBanner/services/.fuse_hidden000178f900000004 b/src/modules/heroBanner/services/.fuse_hidden000178f900000004 new file mode 100644 index 0000000..475c210 --- /dev/null +++ b/src/modules/heroBanner/services/.fuse_hidden000178f900000004 @@ -0,0 +1,19 @@ +import { AppError } from "../../../helpers/error/instances/app"; +import { ErrorForwarder } from "../../../helpers/error/instances/forwarder"; +import { findSystemPreferenceService } from "../../systemPreference/services/internal/findSystemPreference.service"; +import { findAllActiveHeroBannerRepository } from "../repositories/GET/findAllActiveHeroBanner.repository"; + +export const getActiveHeroBannerService = async () => { + try { + const isHeroBannerEnabled = await findSystemPreferenceService( + "HERO_BANNER_ENABLED", + "boolean", + ); + if (!isHeroBannerEnabled) + throw new AppError(403, "Hero Banner is disabled"); + + return await findAllActiveHeroBannerRepository(); + } catch (error) { + ErrorForwarder(error); + } +};