Skip to content

Commit b98a2da

Browse files
Update src/templates/domain/useCases/UpdateTemplateLicenseTerms.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 4b6149b commit b98a2da

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/templates/domain/useCases/UpdateTemplateLicenseTerms.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ export class UpdateTemplateLicenseTerms implements UseCase<void> {
99
this.templatesRepository = templatesRepository
1010
}
1111

12+
/**
13+
* Updates the license terms for a template with the given identifier.
14+
*
15+
* @param {number} templateId - The unique identifier of the template to update.
16+
* @param {UpdateTemplateLicenseTermsDTO} payload - The license terms data to apply to the template.
17+
* @returns {Promise<void>} A promise that resolves when the license terms have been updated.
18+
*/
1219
async execute(templateId: number, payload: UpdateTemplateLicenseTermsDTO): Promise<void> {
1320
return await this.templatesRepository.updateTemplateLicenseTerms(templateId, payload)
1421
}

0 commit comments

Comments
 (0)