File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { getOrCreate } from '@kodadot1/metasquid/entity'
2
2
import md5 from 'md5'
3
- import { CollectionEntity as CE } from '../../model'
3
+ import { CollectionEntity as CE , Kind } from '../../model'
4
4
import { handleMetadata } from '../shared/metadata'
5
5
import { unwrap } from '../utils/extract'
6
6
import { debug , pending , success } from '../utils/logger'
@@ -50,6 +50,7 @@ export async function handleCollectionCreate(context: Context): Promise<void> {
50
50
final . name = metadata ?. name
51
51
final . image = metadata ?. image
52
52
final . media = metadata ?. animationUrl
53
+ final . kind = metadata ?. kind || Kind . mixed
53
54
}
54
55
55
56
success ( OPERATION , `[COLLECTION] ${ final . id } ` )
Original file line number Diff line number Diff line change 1
1
import { getOrCreate } from '@kodadot1/metasquid/entity'
2
2
import md5 from 'md5'
3
- import { CollectionEntity as CE } from '../../model'
3
+ import { CollectionEntity as CE , Kind } from '../../model'
4
4
import { handleMetadata } from '../shared/metadata'
5
5
import { unwrap } from '../utils/extract'
6
6
import { debug , pending , success } from '../utils/logger'
@@ -50,6 +50,7 @@ export async function handleCollectionCreate(context: Context): Promise<void> {
50
50
final . name = metadata ?. name
51
51
final . image = metadata ?. image
52
52
final . media = metadata ?. animationUrl
53
+ final . kind = metadata ?. kind || Kind . mixed
53
54
}
54
55
55
56
success ( OPERATION , `[COLLECTION] ${ final . id } ` )
You can’t perform that action at this time.
0 commit comments