Skip to content

Commit faade42

Browse files
committed
add documentation
1 parent 503f81b commit faade42

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/templates/domain/useCases/UpdateTemplateMetadata.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ export class UpdateTemplateMetadata implements UseCase<void> {
88
constructor(templatesRepository: ITemplatesRepository) {
99
this.templatesRepository = templatesRepository
1010
}
11-
11+
/**
12+
* Updates the metadata for a template with the given identifier.
13+
*
14+
* @param {number} templateId - The unique identifier of the template to update.
15+
* @param {UpdateTemplateMetadataDTO} payload - The metadata to apply to the template.
16+
* @returns {Promise<void>} A promise that resolves when the metadata has been updated.
17+
*/
1218
async execute(
1319
templateId: number,
1420
payload: UpdateTemplateMetadataDTO,

0 commit comments

Comments
 (0)