Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliu-dev committed Dec 3, 2024
1 parent e8a4f14 commit 5f6d76b
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion graphql-server/schema.gql
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ type Remote {
_id: ID!
name: String!
url: String!
fetch_specs: [String!]!
fetchSpecs: [String!]!
}

type RemoteList {
Expand Down
2 changes: 1 addition & 1 deletion graphql-server/src/queryFactory/mysql/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ export class MySQLQueryFactory
throw notDoltError("restore all tables");
}

async getRemotes(args: t.DBArgs): t.PR {
async getRemotes(_args: t.DBArgs): t.PR {
throw notDoltError("get one-sided diff");
}
}
4 changes: 2 additions & 2 deletions graphql-server/src/remotes/remote.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class Remote {
url: string;

@Field(_type => [String])
fetch_specs: string[];
fetchSpecs: string[];
}

@ObjectType()
Expand All @@ -28,6 +28,6 @@ export function fromDoltRemotesRow(databaseName: string, r: RawRow): Remote {
_id: `databases/${databaseName}/remotes/${r.name}`,
name: r.name,
url: r.url,
fetch_specs: r.fetch_specs,
fetchSpecs: r.fetch_specs,
};
}
2 changes: 1 addition & 1 deletion graphql-server/src/remotes/remote.resolver.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Args, Query, Resolver } from "@nestjs/graphql";
import { ConnectionProvider } from "src/connections/connection.provider";
import { fromDoltRemotesRow, Remote, RemoteList } from "./remote.model";
import { DBArgsWithOffset } from "src/utils/commonTypes";
import { RawRow } from "src/queryFactory/types";
import { getNextOffset, ROW_LIMIT } from "src/utils";
import { fromDoltRemotesRow, Remote, RemoteList } from "./remote.model";

@Resolver(_of => Remote)
export class RemoteResolver {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function Inner({ remotes }: InnerProps) {
<li key={remote.name}>
<span>{remote.name}</span>
<span>{remote.url}</span>
<span>{remote.fetch_specs}</span>
<span>{remote.fetchSpecs}</span>
</li>
))}
</ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const REMOTES_FOR_REMOTES_PAGE_QUERY = gql`
_id
name
url
fetch_specs
fetchSpecs
}
query RemoteList($databaseName: String!, $offset: Int) {
remotes(databaseName: $databaseName, offset: $offset) {
Expand Down
8 changes: 4 additions & 4 deletions web/renderer/gen/graphql-types.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ export enum QueryExecutionStatus {
export type Remote = {
__typename?: 'Remote';
_id: Scalars['ID']['output'];
fetch_specs: Array<Scalars['String']['output']>;
fetchSpecs: Array<Scalars['String']['output']>;
name: Scalars['String']['output'];
url: Scalars['String']['output'];
};
Expand Down Expand Up @@ -1182,15 +1182,15 @@ export type DeleteTagMutationVariables = Exact<{

export type DeleteTagMutation = { __typename?: 'Mutation', deleteTag: boolean };

export type RemoteFragment = { __typename?: 'Remote', _id: string, name: string, url: string, fetch_specs: Array<string> };
export type RemoteFragment = { __typename?: 'Remote', _id: string, name: string, url: string, fetchSpecs: Array<string> };

export type RemoteListQueryVariables = Exact<{
databaseName: Scalars['String']['input'];
offset?: InputMaybe<Scalars['Int']['input']>;
}>;


export type RemoteListQuery = { __typename?: 'Query', remotes: { __typename?: 'RemoteList', nextOffset?: number | null, list: Array<{ __typename?: 'Remote', _id: string, name: string, url: string, fetch_specs: Array<string> }> } };
export type RemoteListQuery = { __typename?: 'Query', remotes: { __typename?: 'RemoteList', nextOffset?: number | null, list: Array<{ __typename?: 'Remote', _id: string, name: string, url: string, fetchSpecs: Array<string> }> } };

export type LoadDataMutationVariables = Exact<{
databaseName: Scalars['String']['input'];
Expand Down Expand Up @@ -1615,7 +1615,7 @@ export const RemoteFragmentDoc = gql`
_id
name
url
fetch_specs
fetchSpecs
}
`;
export const ColumnForDataTableFragmentDoc = gql`
Expand Down

0 comments on commit 5f6d76b

Please sign in to comment.