mirror of
https://github.com/graphql-hive/console
synced 2026-05-23 09:08:34 +00:00
refactor: remove unused passed arguments (#4747)
This commit is contained in:
parent
779166927e
commit
d7b49c2aea
2 changed files with 8 additions and 13 deletions
|
|
@ -1067,8 +1067,6 @@ export class SchemaManager {
|
|||
]);
|
||||
|
||||
const schemaVersion = await this.storage.getVersionBeforeVersionId({
|
||||
organization: args.organization,
|
||||
project: args.project,
|
||||
target: args.target,
|
||||
beforeVersionId: args.beforeVersionId,
|
||||
beforeVersionCreatedAt: args.beforeVersionCreatedAt,
|
||||
|
|
@ -1096,8 +1094,6 @@ export class SchemaManager {
|
|||
beforeVersionCreatedAt: string;
|
||||
}) {
|
||||
const schemaVersion = await this.storage.getVersionBeforeVersionId({
|
||||
organization: args.organization,
|
||||
project: args.project,
|
||||
target: args.target,
|
||||
beforeVersionId: args.beforeVersionId,
|
||||
beforeVersionCreatedAt: args.beforeVersionCreatedAt,
|
||||
|
|
|
|||
|
|
@ -361,22 +361,21 @@ export interface Storage {
|
|||
valid: boolean;
|
||||
} | null>;
|
||||
|
||||
getLatestValidVersion(_: TargetSelector): Promise<SchemaVersion | never>;
|
||||
getLatestValidVersion(_: { target: string }): Promise<SchemaVersion | never>;
|
||||
|
||||
getMaybeLatestValidVersion(_: TargetSelector): Promise<SchemaVersion | null | never>;
|
||||
getMaybeLatestValidVersion(_: { target: string }): Promise<SchemaVersion | null | never>;
|
||||
|
||||
getLatestVersion(_: TargetSelector): Promise<SchemaVersion | never>;
|
||||
|
||||
getMaybeLatestVersion(_: TargetSelector): Promise<SchemaVersion | null>;
|
||||
|
||||
/** Find the version before a schema version */
|
||||
getVersionBeforeVersionId(
|
||||
_: TargetSelector & {
|
||||
beforeVersionId: string;
|
||||
beforeVersionCreatedAt: string;
|
||||
onlyComposable: boolean;
|
||||
},
|
||||
): Promise<SchemaVersion | null>;
|
||||
getVersionBeforeVersionId(_: {
|
||||
target: string;
|
||||
beforeVersionId: string;
|
||||
beforeVersionCreatedAt: string;
|
||||
onlyComposable: boolean;
|
||||
}): Promise<SchemaVersion | null>;
|
||||
|
||||
/**
|
||||
* Find a specific schema version via it's action id.
|
||||
|
|
|
|||
Loading…
Reference in a new issue