From 28a4fd452d637dbe199d15efcca0da37ade5a5f8 Mon Sep 17 00:00:00 2001 From: Alexey Orlenko Date: Fri, 15 Nov 2024 12:03:26 +0100 Subject: [PATCH] Update lambda-node-18 --- platforms-serverless/lambda-node-18/prisma/schema.prisma | 2 +- platforms-serverless/lambda-node-18/test.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/platforms-serverless/lambda-node-18/prisma/schema.prisma b/platforms-serverless/lambda-node-18/prisma/schema.prisma index e453338bd6f0..687e46db1584 100644 --- a/platforms-serverless/lambda-node-18/prisma/schema.prisma +++ b/platforms-serverless/lambda-node-18/prisma/schema.prisma @@ -1,6 +1,6 @@ generator client { provider = "prisma-client-js" - binaryTargets = ["native", "rhel-openssl-1.0.x"] + binaryTargets = ["native", "rhel-openssl-3.0.x"] } datasource db { diff --git a/platforms-serverless/lambda-node-18/test.ts b/platforms-serverless/lambda-node-18/test.ts index 3a54217e6e85..19d5b56b19ec 100644 --- a/platforms-serverless/lambda-node-18/test.ts +++ b/platforms-serverless/lambda-node-18/test.ts @@ -2,7 +2,7 @@ import { Prisma } from '@prisma/client' import { invokeLambdaSync } from './utils' const process = require('process') -const name = `platforms-serverless-lambda-node-16-${process.env.PRISMA_CLIENT_ENGINE_TYPE}` +const name = `platforms-serverless-lambda-node-18-${process.env.PRISMA_CLIENT_ENGINE_TYPE}` async function main() { console.log('testing function', name) @@ -19,9 +19,9 @@ async function main() { const actual = JSON.stringify(original) console.log('actual', actual) // TODO Update to only expect on engine file after zip script was updated - let files = `,"files":["default.d.ts","default.js","deno","edge.d.ts","edge.js","index-browser.js","index.d.ts","index.js","libquery_engine-debian-openssl-1.1.x.so.node","libquery_engine-rhel-openssl-1.0.x.so.node","package.json","schema.prisma","wasm.d.ts","wasm.js"]` + let files = `,"files":["default.d.ts","default.js","deno","edge.d.ts","edge.js","index-browser.js","index.d.ts","index.js","libquery_engine-debian-openssl-3.0.x.so.node","libquery_engine-rhel-openssl-3.0.x.so.node","package.json","schema.prisma","wasm.d.ts","wasm.js"]` if (process.env.PRISMA_CLIENT_ENGINE_TYPE === 'binary') { - files = `,"files":["default.d.ts","default.js","deno","edge.d.ts","edge.js","index-browser.js","index.d.ts","index.js","package.json","query-engine-debian-openssl-1.1.x","query-engine-rhel-openssl-1.0.x","schema.prisma","wasm.d.ts","wasm.js"]` + files = `,"files":["default.d.ts","default.js","deno","edge.d.ts","edge.js","index-browser.js","index.d.ts","index.js","package.json","query-engine-debian-openssl-3.0.x","query-engine-rhel-openssl-3.0.x","schema.prisma","wasm.d.ts","wasm.js"]` } const expect =