chore: rm unused console.warn

This commit is contained in:
hjlarry 2026-04-10 10:35:49 +08:00
parent 6ab114ce54
commit 4432c86f57
2 changed files with 0 additions and 14 deletions

View File

@ -147,10 +147,6 @@ const AppPublisher = ({
const appId = appDetail?.id
const socket = appId ? webSocketClient.getSocket(appId) : null
console.warn('[app-publisher] publish success', {
appId,
hasSocket: Boolean(socket),
})
if (appId)
invalidateAppWorkflow(appId)
else

View File

@ -157,21 +157,11 @@ const FeaturesTrigger = () => {
// Then perform the detailed validation
if (await handleCheckBeforePublish()) {
console.warn('[workflow-header] publish start', {
appId: appID,
title: publishParams?.title ?? '',
})
const res = await publishWorkflow({
url: `/apps/${appID}/workflows/publish`,
title: publishParams?.title || '',
releaseNotes: publishParams?.releaseNotes || '',
})
console.warn('[workflow-header] publish response', {
appId: appID,
hasResponse: Boolean(res),
createdAt: res?.created_at,
})
if (res) {
toast.success(t('api.actionSuccess', { ns: 'common' }))
updatePublishedWorkflow(appID!)