Skip to content

Commit

Permalink
Upgrade EditorMovie for @nestia/migrate update.
Browse files Browse the repository at this point in the history
  • Loading branch information
samchon committed Mar 25, 2024
1 parent a4d0823 commit 2bb1bd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/src/movies/editor/EditorMovie.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ const EditorMovie = (props: { mode: "nest" | "sdk" }) => {
): Promise<null | IMigrateFile[]> => {
try {
const result: IValidation<MigrateApplication> =
MigrateApplication.create(swagger);
await MigrateApplication.create(swagger);
if (result.success === false) {
alert(
"Invalid swagger file (must follow OpenAPI 3.0 spec).\n\n" +
"Invalid swagger file (based on OpenAPI 3.0 spec).\n\n" +
JSON.stringify(result.errors, null, 2),
);
return null;
Expand Down

0 comments on commit 2bb1bd0

Please sign in to comment.