Skip to content

Commit 39ede65

Browse files
author
KoLiBer
committed
docs: change repository mixin methods comment, used by
1 parent e813697 commit 39ede65

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

sources/src/repositories/filter.repository.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export function FilterRepositoryMixin<
125125
};
126126

127127
/**
128-
* Filter id and find one entity
128+
* History findById() using findOne()
129129
*/
130130
findById = async (
131131
id: ID,
@@ -165,7 +165,7 @@ export function FilterRepositoryMixin<
165165
};
166166

167167
/**
168-
* Filter id and check one entity
168+
* History exists() using count()
169169
*/
170170
exists = async (id: ID, options?: Options) => {
171171
const result = await this.count(
@@ -199,7 +199,7 @@ export function FilterRepositoryMixin<
199199
};
200200

201201
/**
202-
* Filter id and update one entity
202+
* History updateById() using updateAll()
203203
*/
204204
updateById = async (
205205
id: ID,
@@ -214,7 +214,7 @@ export function FilterRepositoryMixin<
214214
};
215215

216216
/**
217-
* Filter id and update one entity
217+
* History update() using updateAll()
218218
*/
219219
update = async (entity: T, options?: Options) => {
220220
await this.updateAll(
@@ -227,7 +227,7 @@ export function FilterRepositoryMixin<
227227
};
228228

229229
/**
230-
* Filter id and replace one entity
230+
* History replaceById() using updateAll()
231231
*/
232232
replaceById = async (
233233
id: ID,
@@ -266,7 +266,7 @@ export function FilterRepositoryMixin<
266266
};
267267

268268
/**
269-
* Filter id and delete one entity
269+
* History delete() using deleteAll()
270270
*/
271271
delete = async (entity: T, options?: Options) => {
272272
await this.deleteAll(
@@ -278,7 +278,7 @@ export function FilterRepositoryMixin<
278278
};
279279

280280
/**
281-
* Filter id and delete one entity
281+
* History deleteById() using deleteAll()
282282
*/
283283
deleteById = async (id: ID, options?: Options) => {
284284
await this.deleteAll(

0 commit comments

Comments
 (0)