()
| 5 | const repo = () => getCollectionRepository(isGuest()) |
| 6 | |
| 7 | export const getCollections = async (): Promise<Collection[]> => { |
| 8 | return repo().getAll() |
| 9 | } |
| 10 | |
| 11 | export const getCollectionById = async (id: string): Promise<Collection | null> => { |
| 12 | return repo().getById(id) |