Revert "fix(server): wrap read-modify-write apis with distributed lock (#5979)"

This reverts commit 34f892b05b.
This commit is contained in:
LongYinan
2024-03-15 16:55:48 +08:00
parent a24320da68
commit bc465f9704
20 changed files with 79 additions and 412 deletions
@@ -11,12 +11,6 @@ import { GraphQLError } from 'graphql';
import { Config } from '../config';
import { GQLLoggerPlugin } from './logger-plugin';
export type GraphqlContext = {
req: Request;
res: Response;
isAdminQuery: boolean;
};
@Global()
@Module({
imports: [
@@ -36,13 +30,7 @@ export type GraphqlContext = {
: '../../../schema.gql'
),
sortSchema: true,
context: ({
req,
res,
}: {
req: Request;
res: Response;
}): GraphqlContext => ({
context: ({ req, res }: { req: Request; res: Response }) => ({
req,
res,
isAdminQuery: false,