Skip to content

Commit

Permalink
🐛 Fixed types from recent livepeer package update
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario-SO committed Dec 30, 2024
1 parent 99a8650 commit 8bb6113
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
import ShareButton from '@/components/misc/interact/ShareButton';
import { deleteSessionAction } from '@/lib/actions/sessions';
import { toast } from 'sonner';
import { Asset } from 'livepeer/models/components';
import { Button } from '@/components/ui/button';
import { useParams } from 'next/navigation';
import { IExtendedSession } from '@/lib/types';
Expand Down
11 changes: 7 additions & 4 deletions packages/app/lib/actions/sessions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,14 @@ const livepeer = new Livepeer({
});

export const updateAssetAction = async (session: IExtendedSession) => {
const asset = await livepeer.asset.update(session.assetId as string, {
storage: {
ipfs: true,
const asset = await livepeer.asset.update(
{
storage: {
ipfs: true,
},
},
});
session.assetId as string,
);
await updateSessionAction({
session: {
...session,
Expand Down
2 changes: 1 addition & 1 deletion packages/app/lib/services/stageService.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { IStage } from 'streameth-new-server/src/interfaces/stage.interface';
import { apiUrl } from '@/lib/utils/utils';
import { IExtendedStage } from '../types';
import { Session, Stream } from 'livepeer/dist/models/components';
import type { Session, Stream } from 'livepeer/models/components';
import { fetchClient } from './fetch-client';

export async function fetchStage({
Expand Down

0 comments on commit 8bb6113

Please sign in to comment.