Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
xsalonx committed Apr 30, 2024
1 parent 32598e1 commit f66cb98
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/database/repositories/Repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ class Repository {

/**
* Insert multiple entities
*
* @param {*[]} entities list of entities to be inserted
* @return {Promise<*[]>} promise
*/
Expand All @@ -119,10 +120,10 @@ class Repository {
}

/**
* Removes a specific entities.
* Removes all entities which can be found with provided findQuery
*
* @param {Object|QueryBuilder} [findQuery] the find query (see sequelize findAll options) or a find query builder
* @returns {Promise<*[]>} Promise with list of removed entities
* @returns {Promise<*[]>} promise with list of removed entities
*/
async removeAll(findQuery) {
if (findQuery instanceof QueryBuilder) {
Expand Down

0 comments on commit f66cb98

Please sign in to comment.