Skip to content

Commit 702da03

Browse files
committed
Update fastify package
1 parent 6267adc commit 702da03

7 files changed

Lines changed: 166 additions & 8 deletions

File tree

package-lock.json

Lines changed: 147 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185
"dotenv": "16.4.5",
186186
"embla-carousel-react": "8.1.8",
187187
"fast-deep-equal": "3.1.3",
188-
"fastify": "5.4.0",
188+
"fastify": "5.8.1",
189189
"fastify-favicon": "5.0.0",
190190
"fastify-plugin": "5.0.1",
191191
"fastify-raw-body": "5.0.0",
@@ -455,4 +455,4 @@
455455
"rollup": "npm:@rollup/wasm-node"
456456
}
457457
}
458-
}
458+
}

packages/server/api/src/app/app-connection/app-connection.controller.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ const GetAppConnectionRequest = {
258258
{ additionalProperties: true },
259259
),
260260
]),
261+
[StatusCodes.BAD_REQUEST]: Type.Unknown(),
261262
},
262263
},
263264
};

packages/server/api/src/app/dashboards/dashboards-module.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ const StatsRequest = {
8888
}),
8989
response: {
9090
[StatusCodes.OK]: WorkflowStats,
91+
[StatusCodes.INTERNAL_SERVER_ERROR]: Type.Unknown(),
9192
},
9293
},
9394
};

packages/server/api/src/app/flows/flow/flow-version.controller.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,18 @@ export const flowVersionController: FastifyPluginAsyncTypebox = async (
4242
success: Type.Boolean(),
4343
message: Type.String(),
4444
}),
45+
[StatusCodes.BAD_REQUEST]: Type.Object({
46+
success: Type.Boolean(),
47+
message: Type.String(),
48+
}),
49+
[StatusCodes.CONFLICT]: Type.Object({
50+
success: Type.Boolean(),
51+
message: Type.String(),
52+
}),
53+
[StatusCodes.INTERNAL_SERVER_ERROR]: Type.Object({
54+
success: Type.Boolean(),
55+
message: Type.String(),
56+
}),
4557
},
4658
},
4759
},

packages/server/api/src/app/project/project-controller.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ const GetUserProjectRequestOptions = {
6767
schema: {
6868
response: {
6969
200: ProjectWithoutToken,
70+
401: Type.Unknown(),
71+
404: Type.Unknown(),
7072
},
7173
},
7274
};

packages/server/api/src/app/user-settings/user-settings.module.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ const GetUserSettingsRequestOptions = {
7070
security: [SERVICE_KEY_SECURITY_OPENAPI],
7171
response: {
7272
[StatusCodes.OK]: UserSettingsDefinition,
73+
[StatusCodes.NOT_FOUND]: Type.Unknown(),
7374
},
7475
},
7576
};

0 commit comments

Comments
 (0)