(id: string)
| 9 | } |
| 10 | |
| 11 | export const getCollectionById = async (id: string): Promise<Collection | null> => { |
| 12 | return repo().getById(id) |
| 13 | } |
| 14 | |
| 15 | export const createCollection = async (data: CollectionCreate): Promise<Collection> => { |
| 16 | return repo().create(data) |