Skip to content

Commit c50b63e

Browse files
committed
use consistent param name
1 parent 0a0dcf2 commit c50b63e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/collections/domain/repositories/ICollectionsRepository.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export interface ICollectionsRepository {
99
parentCollectionId: number | string
1010
): Promise<number>
1111
getCollectionFacets(collectionIdOrAlias: number | string): Promise<string[]>
12-
publishCollection(collectionId: number | string): Promise<void>
12+
publishCollection(collectionIdOrAlias: number | string): Promise<void>
1313
getCollectionUserPermissions(
1414
collectionIdOrAlias: number | string
1515
): Promise<CollectionUserPermissions>

src/collections/domain/useCases/PublishCollection.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class PublishCollection implements UseCase<void> {
1414
* @param {number | string} [collectionId] - The collection identifier, which can be a string (for collection alias), or a number (for numeric identifiers).
1515
* @returns {Promise<void>} - This method does not return anything upon successful completion.
1616
*/
17-
async execute(collectionId: number | string): Promise<void> {
18-
return await this.collectionsRepository.publishCollection(collectionId)
17+
async execute(collectionIdOrAlias: number | string): Promise<void> {
18+
return await this.collectionsRepository.publishCollection(collectionIdOrAlias)
1919
}
2020
}

0 commit comments

Comments
 (0)