mirror of
https://github.com/graphql-hive/console
synced 2026-05-23 09:08:34 +00:00
Fix logic behind SchemaVersion.isFirstComposableVersion (#5402)
This commit is contained in:
parent
32f9862dc5
commit
8483bd506f
1 changed files with 5 additions and 1 deletions
|
|
@ -280,11 +280,15 @@ export class SchemaVersionHelper {
|
|||
}
|
||||
|
||||
async getIsFirstComposableVersion(schemaVersion: SchemaVersion) {
|
||||
if (!schemaVersion.isComposable) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (schemaVersion.recordVersion === '2024-01-10') {
|
||||
return schemaVersion.diffSchemaVersionId === null;
|
||||
}
|
||||
|
||||
if (schemaVersion.hasPersistedSchemaChanges && schemaVersion.isComposable) {
|
||||
if (schemaVersion.hasPersistedSchemaChanges) {
|
||||
const previousVersion = await this.getPreviousDiffableSchemaVersion(schemaVersion);
|
||||
if (previousVersion === null) {
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue