Skip to content

Commit ba7a83d

Browse files
committed
addressing pr comments
1 parent f826155 commit ba7a83d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/server/src/adapter/express/middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { CommonAdapterOptions } from '../common';
66
/**
77
* Express middleware options
88
*/
9-
export interface MiddlewareOptions<Schema extends SchemaDef> extends CommonAdapterOptions<Schema> {
9+
export interface MiddlewareOptions<Schema extends SchemaDef> extends CommonAdapterOptions<Schema> {
1010
/**
1111
* Callback for getting a ZenStackClient for the given request
1212
*/

packages/server/src/adapter/fastify/plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export interface PluginOptions<Schema extends SchemaDef> extends CommonAdapterOp
1515
prefix: string;
1616

1717
/**
18-
* Callback for getting a PrismaClient for the given request
18+
* Callback for getting a ZenStackClient for the given request
1919
*/
2020
getClient: (request: FastifyRequest, reply: FastifyReply) => ClientContract<Schema> | Promise<ClientContract<Schema>>;
2121
}
@@ -29,7 +29,7 @@ const pluginHandler: FastifyPluginCallback<PluginOptions<SchemaDef>> = (fastify,
2929
fastify.all(`${prefix}/*`, async (request, reply) => {
3030
const client = await options.getClient(request, reply);
3131
if (!client) {
32-
reply.status(500).send({ message: 'unable to get prisma from request context' });
32+
reply.status(500).send({ message: 'unable to get ZenStackClient from request context' });
3333
return reply;
3434
}
3535

0 commit comments

Comments
 (0)