File tree Expand file tree Collapse file tree
src/templates/domain/useCases Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change @@ -9,6 +9,13 @@ export class UpdateTemplateTermsOfAccess implements UseCase<void> {
99 this . templatesRepository = templatesRepository
1010 }
1111
12+ /**
13+ * Updates the terms of access for a template with the given identifier.
14+ *
15+ * @param {number } templateId - The unique identifier of the template to update.
16+ * @param {TermsOfAccess } termsOfAccess - The new terms of access to apply to the template.
17+ * @returns {Promise<void> } A promise that resolves when the terms of access have been updated.
18+ */
1219 async execute ( templateId : number , termsOfAccess : TermsOfAccess ) : Promise < void > {
1320 return await this . templatesRepository . updateTemplateTermsOfAccess ( templateId , termsOfAccess )
1421 }
You can’t perform that action at this time.
0 commit comments