Skip to content

Commit 9b0a846

Browse files
committed
chore : accept only props for metadata
1 parent 25f0af7 commit 9b0a846

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

examples/studio-kit-demo/src/host/host.tsx

+2-4
Original file line numberDiff line numberDiff line change
@@ -513,10 +513,8 @@ const Project = () => {
513513
displayName: `Game source: ${Math.ceil(
514514
Math.random() * 10000,
515515
)}`,
516-
metadata: {
517-
props: {
518-
type: 'integration',
519-
},
516+
props: {
517+
type: 'integration',
520518
},
521519
address: {
522520
rtmpPull: {

src/core/commands.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ export const createSource = async (payload: {
9797
projectId: string
9898
displayName?: string
9999
address?: Partial<LiveApiModel.SourceAddress>
100-
metadata?: any
100+
props?: any
101101
}) => {
102102
const collectionId = getUser().id
103103

104104
const { source } = await CoreContext.clients.LiveApi().source.createSource({
105-
metadata: payload.metadata || {},
105+
metadata: { props: payload.props || {} },
106106
collectionId,
107107
address: payload.address,
108108
preview: {

0 commit comments

Comments
 (0)