Skip to content

Commit

Permalink
fix: add one file that missed from last merge action
Browse files Browse the repository at this point in the history
  • Loading branch information
ChengShi-1 committed Oct 16, 2024
1 parent b7d5a4d commit 93e4ca9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/collection/domain/useCases/publishCollection.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { CollectionRepository } from '../repositories/CollectionRepository'

export function publishCollection(
collectionRepository: CollectionRepository,
id: string
): Promise<void> {
return collectionRepository.publish(id).catch((error: Error) => {
throw new Error(error.message)
})
}

0 comments on commit 93e4ca9

Please sign in to comment.