mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 15:47:13 +01:00
Split queries into prisma and sql.
This commit is contained in:
parent
1a66e3df73
commit
b9fbbc6453
69 changed files with 117 additions and 115 deletions
|
|
@ -2,7 +2,7 @@ import { z } from 'zod';
|
|||
import { canUpdatePixel, canDeletePixel, canViewPixel } from '@/permissions';
|
||||
import { parseRequest } from '@/lib/request';
|
||||
import { ok, json, unauthorized, serverError, badRequest } from '@/lib/response';
|
||||
import { deletePixel, getPixel, updatePixel } from '@/queries';
|
||||
import { deletePixel, getPixel, updatePixel } from '@/queries/prisma';
|
||||
|
||||
export async function GET(request: Request, { params }: { params: Promise<{ pixelId: string }> }) {
|
||||
const { auth, error } = await parseRequest(request);
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import { json, unauthorized } from '@/lib/response';
|
|||
import { uuid } from '@/lib/crypto';
|
||||
import { getQueryFilters, parseRequest } from '@/lib/request';
|
||||
import { pagingParams, searchParams } from '@/lib/schema';
|
||||
import { createPixel, getUserPixels } from '@/queries';
|
||||
import { createPixel, getUserPixels } from '@/queries/prisma';
|
||||
|
||||
export async function GET(request: Request) {
|
||||
const schema = z.object({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue