mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-18 07:37:49 +02:00
15 lines
452 B
TypeScript
15 lines
452 B
TypeScript
//
|
|
// Copyright @ 2024 Hardcore Engineering Inc.
|
|
//
|
|
|
|
import type { TrainingAttempt } from '@hcengineering/training'
|
|
import type { Location } from '@hcengineering/ui'
|
|
import { trainingAttemptRoute } from '../routing/routes/trainingAttemptRoute'
|
|
|
|
export async function trainingAttemptLinkProviderEncode (
|
|
object: TrainingAttempt,
|
|
_props: Record<string, any>
|
|
): Promise<Location> {
|
|
return trainingAttemptRoute.build({ id: object._id, tab: null })
|
|
}
|