mirror of
https://github.com/graphql-hive/console
synced 2026-05-23 09:08:34 +00:00
fix: typescript exclamation mark (#4090)
This commit is contained in:
parent
b6c1a6327d
commit
c7abf7ceb0
2 changed files with 9 additions and 14 deletions
|
|
@ -184,8 +184,8 @@ export class CompositeLegacyModel {
|
|||
commit: input.commit,
|
||||
target: target.id,
|
||||
date: Date.now() as any,
|
||||
service_name: input.service!,
|
||||
service_url: input.url!,
|
||||
service_name: input.service || '',
|
||||
service_url: input.url || '',
|
||||
action: 'PUSH',
|
||||
metadata: input.metadata ?? null,
|
||||
};
|
||||
|
|
@ -327,8 +327,8 @@ export class CompositeLegacyModel {
|
|||
if (shouldBePublished) {
|
||||
const messages: string[] = [];
|
||||
|
||||
if (hasNewUrl) {
|
||||
messages.push(serviceUrlCheck.result.message!);
|
||||
if (serviceUrlCheck.status === 'completed' && serviceUrlCheck.result.status === 'modified') {
|
||||
messages.push(serviceUrlCheck.result.message);
|
||||
}
|
||||
|
||||
if (hasNewMetadata) {
|
||||
|
|
|
|||
|
|
@ -308,8 +308,8 @@ export class CompositeModel {
|
|||
commit: input.commit,
|
||||
target: target.id,
|
||||
date: Date.now() as any,
|
||||
service_name: input.service!,
|
||||
service_url: input.url!,
|
||||
service_name: input.service || '',
|
||||
service_url: input.url || '',
|
||||
action: 'PUSH',
|
||||
metadata: input.metadata ?? null,
|
||||
};
|
||||
|
|
@ -456,18 +456,13 @@ export class CompositeModel {
|
|||
conditionalBreakingChangeDiffConfig,
|
||||
});
|
||||
|
||||
const hasNewUrl =
|
||||
serviceUrlCheck.status === 'completed' && serviceUrlCheck.result.status === 'modified';
|
||||
const hasNewMetadata =
|
||||
metadataCheck?.status === 'completed' && metadataCheck.result.status === 'modified';
|
||||
|
||||
const messages: string[] = [];
|
||||
|
||||
if (hasNewUrl) {
|
||||
messages.push(serviceUrlCheck.result.message!);
|
||||
if (serviceUrlCheck.status === 'completed' && serviceUrlCheck.result.status === 'modified') {
|
||||
messages.push(serviceUrlCheck.result.message);
|
||||
}
|
||||
|
||||
if (hasNewMetadata) {
|
||||
if (metadataCheck?.status === 'completed' && metadataCheck.result.status === 'modified') {
|
||||
messages.push('Metadata has been updated');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue