Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Fix typo respository -> repository

天舟43096e1c2134
diff --git a/frontend/src/store/modules/repository.ts b/frontend/src/store/modules/repository.ts
index f8baa12f69..6686e5fb89 100644
--- a/frontend/src/store/modules/repository.ts
+++ b/frontend/src/store/modules/repository.ts
@@ -1,29 +1,29 @@
import axios from "axios";
import {
- VCSId,
+ Project,
+ ProjectId,
+ Repository,
+ RepositoryCreate,
+ RepositoryPatch,
RepositoryState,
- ResourceObject,
ResourceIdentifier,
+ ResourceObject,
unknown,
- Repository,
- RepositoryCreate,
- Project,
- ProjectId,
VCS,
- RepositoryPatch,
+ VCSId,
} from "../../types";
function convert(
- respository: ResourceObject,
+ repository: ResourceObject,
includedList: ResourceObject[],
rootGetters: any
): Repository {
- const vcsId = (respository.relationships!.vcs.data as ResourceIdentifier).id;
+ const vcsId = (repository.relationships!.vcs.data as ResourceIdentifier).id;
let vcs: VCS = unknown("VCS") as VCS;
vcs.id = parseInt(vcsId);
const projectId = (
- respository.relationships!.project.data as ResourceIdentifier
+ repository.relationships!.project.data as ResourceIdentifier
).id;
let project: Project = unknown("PROJECT") as Project;
project.id = parseInt(projectId);
@@ -38,8 +38,8 @@ function convert(
}
return {
- ...(respository.attributes as Omit<Repository, "id" | "vcs" | "project">),
- id: parseInt(respository.id),
+ ...(repository.attributes as Omit<Repository, "id" | "vcs" | "project">),
+ id: parseInt(repository.id),
vcs,
project,
};