We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b6149b commit b98a2daCopy full SHA for b98a2da
1 file changed
src/templates/domain/useCases/UpdateTemplateLicenseTerms.ts
@@ -9,6 +9,13 @@ export class UpdateTemplateLicenseTerms implements UseCase<void> {
9
this.templatesRepository = templatesRepository
10
}
11
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
+ */
19
async execute(templateId: number, payload: UpdateTemplateLicenseTermsDTO): Promise<void> {
20
return await this.templatesRepository.updateTemplateLicenseTerms(templateId, payload)
21
0 commit comments