mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-10 12:27:31 -08:00
11 lines
414 B
TypeScript
11 lines
414 B
TypeScript
import type { IRestApiContext } from '@/Interface';
|
|
import { makeRestApiRequest } from '@/utils/apiUtils';
|
|
import type { BannerName } from 'n8n-workflow';
|
|
|
|
export async function dismissBannerPermanently(
|
|
context: IRestApiContext,
|
|
data: { bannerName: BannerName; dismissedBanners: string[] },
|
|
): Promise<void> {
|
|
return makeRestApiRequest(context, 'POST', '/owner/dismiss-banner', { banner: data.bannerName });
|
|
}
|