refactor: traduz contratos compartilhados do schema

This commit is contained in:
Felipe Coutinho
2026-03-14 12:50:43 +00:00
parent fa9bf17663
commit ef918a3667
9 changed files with 248 additions and 247 deletions

View File

@@ -1,7 +1,7 @@
import { headers } from "next/headers";
import { NextResponse } from "next/server";
import { z } from "zod";
import { tokensApi } from "@/db/schema";
import { apiTokens } from "@/db/schema";
import {
generateTokenPair,
getTokenPrefix,
@@ -35,7 +35,7 @@ export async function POST(request: Request) {
);
// Salvar hash do token no banco
await db.insert(tokensApi).values({
await db.insert(apiTokens).values({
id: tokenId,
userId: session.user.id,
name,