@@ -4,19 +4,19 @@ import DataLoaders from '../dataLoaders';
44
55export default class ReleasesFactory {
66 /**
7- * Коллекция релизов
7+ * Releases collection
88 */
99 private collection : Collection < ReleaseDBScheme > ;
1010
1111 /**
12- * DataLoader для релизов
12+ * DataLoader for releases
1313 */
1414 private dataLoaders : DataLoaders ;
1515
1616 /**
17- * Создаёт экземпляр фабрики релизов
18- * @param dbConnection - подключение к базе данных
19- * @param dataLoaders - экземпляр DataLoaders для батчинга запросов
17+ * Creates an instance of the releases factory
18+ * @param dbConnection - database connection
19+ * @param dataLoaders - DataLoaders instance for request batching
2020 */
2121 constructor ( dbConnection : Db , dataLoaders : DataLoaders ) {
2222 this . collection = dbConnection . collection ( 'releases' ) ;
@@ -25,8 +25,8 @@ export default class ReleasesFactory {
2525 }
2626
2727 /**
28- * Получить релиз по его идентификатору с использованием DataLoader
29- * @param id - идентификатор релиза
28+ * Get a release by its identifier using DataLoader
29+ * @param id - release identifier
3030 */
3131 public async getReleaseById ( id : string ) : Promise < ReleaseDBScheme | null > {
3232 console . log ( `[ReleasesFactory] getReleaseById called with id: ${ id } ` ) ;
@@ -41,7 +41,7 @@ export default class ReleasesFactory {
4141 }
4242
4343 /**
44- * Получить все релизы
44+ * Get all releases
4545 */
4646 public async getAllReleases ( ) : Promise < ReleaseDBScheme [ ] > {
4747 console . log ( `[ReleasesFactory] getAllReleases called` ) ;
@@ -56,9 +56,9 @@ export default class ReleasesFactory {
5656 }
5757
5858 /**
59- * Получить релизы с пагинацией
60- * @param page - номер страницы (начиная с 1)
61- * @param limit - количество элементов на страницу
59+ * Get releases with pagination
60+ * @param page - page number (starting from 1)
61+ * @param limit - number of items per page
6262 */
6363 public async getReleasesPaginated ( page : number , limit : number ) : Promise < ReleaseDBScheme [ ] > {
6464 const skip = ( page - 1 ) * limit ;
@@ -74,8 +74,8 @@ export default class ReleasesFactory {
7474 }
7575
7676 /**
77- * Получить релизы по идентификатору проекта
78- * @param projectId - идентификатор проекта
77+ * Get releases by project identifier
78+ * @param projectId - project identifier
7979 */
8080 public async getReleasesByProjectId ( projectId : string ) : Promise < ReleaseDBScheme [ ] > {
8181 console . log ( `[ReleasesFactory] getReleasesByProjectId called with projectId: ${ projectId } ` ) ;
0 commit comments