se supone que volvio
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import express from 'express';
|
||||
import { PrismaClient } from '@empresa/prisma-schema/client';
|
||||
import { PrismaClient } from './prisma/generated/client/index.js';
|
||||
import { Decimal } from '@prisma/client/runtime/library.js';
|
||||
import cors from 'cors';
|
||||
|
||||
// Import new routers
|
||||
@@ -15,6 +16,7 @@ import planillasRouter from './routes/planillas/planillas.js';
|
||||
// Resto del código
|
||||
|
||||
BigInt.prototype.toJSON = function () { return this.toString(); };
|
||||
Decimal.prototype.toJSON = function () { return this.toString(); };
|
||||
|
||||
const prisma = new PrismaClient();
|
||||
export const app = express();
|
||||
|
||||
Reference in New Issue
Block a user