feat(badges): Remove hash implementation and replace it with uuid one.

Signed-off-by: Rbillon59 <r.billon@celonis.com>
This commit is contained in:
Rbillon59
2023-04-21 08:53:28 +02:00
parent 1aabf9e03f
commit 6263ef7ce9
13 changed files with 215 additions and 673 deletions
-6
View File
@@ -20,15 +20,10 @@ import {
} from '@backstage/plugin-badges-backend';
import { Router } from 'express';
import { PluginEnvironment } from '../types';
import { DatabaseBadgesStore } from '@backstage/plugin-badges-backend';
export default async function createPlugin(
env: PluginEnvironment,
): Promise<Router> {
const db = await DatabaseBadgesStore.create({
database: env.database,
});
return await createRouter({
config: env.config,
discovery: env.discovery,
@@ -36,6 +31,5 @@ export default async function createPlugin(
tokenManager: env.tokenManager,
logger: env.logger,
identity: env.identity,
db: db,
});
}