7 lines
272 B
TypeScript
7 lines
272 B
TypeScript
import { desc, eq, count, or, like, and } from 'drizzle-orm';
|
|
import { app, db, schema } from '@/app.ts';
|
|
export class N5Service {
|
|
static async getBySlug(slug: string) {
|
|
return db.select().from(schema.shortLink).where(eq(schema.shortLink.slug, slug)).limit(1);
|
|
}
|
|
} |