add bigint serialise

This commit is contained in:
Nathan Rashleigh committed 2024-06-30 22:23:08 +10:00
1 parent f517eb7a1f
commit c3a5309726
1 file changed
+4
+4
View File
@@ -7,6 +7,10 @@ import { MeiliSearch } from 'meilisearch'
import memeService from "./src/memes"
BigInt.prototype.toJSON = function bigIntStringify() {
return this.toString();
};
async function main() {
const log = pino({ base: {} });
const prisma = new PrismaClient()