From 9fbd23c7e54373209cbb1fc2b393247e750e4182 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Sat, 4 Sep 2021 17:42:35 +0200 Subject: [PATCH] plugins/todo: replace usage of deprecated serializeEntityRef Signed-off-by: Patrik Oldsberg --- plugins/todo/src/api/TodoClient.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/todo/src/api/TodoClient.ts b/plugins/todo/src/api/TodoClient.ts index ab2bbea45b..f75e4b6954 100644 --- a/plugins/todo/src/api/TodoClient.ts +++ b/plugins/todo/src/api/TodoClient.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { serializeEntityRef } from '@backstage/catalog-model'; +import { stringifyEntityRef } from '@backstage/catalog-model'; import { ResponseError } from '@backstage/errors'; import { TodoApi, TodoListOptions, TodoListResult } from './types'; import { DiscoveryApi, IdentityApi } from '@backstage/core-plugin-api'; @@ -55,7 +55,7 @@ export class TodoClient implements TodoApi { const query = new URLSearchParams(); if (entity) { - query.set('entity', serializeEntityRef(entity) as string); + query.set('entity', stringifyEntityRef(entity)); } if (typeof offset === 'number') { query.set('offset', String(offset));