Skip to content

Commit

Permalink
Update lambda-node-18
Browse files Browse the repository at this point in the history
  • Loading branch information
aqrln committed Nov 15, 2024
1 parent ad4f386 commit 28a4fd4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion platforms-serverless/lambda-node-18/prisma/schema.prisma
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions platforms-serverless/lambda-node-18/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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 =
Expand Down

0 comments on commit 28a4fd4

Please sign in to comment.