Skip to content

Commit

Permalink
Merge pull request #76 from Judahh/development
Browse files Browse the repository at this point in the history
add attributes
  • Loading branch information
Judahh authored Oct 7, 2023
2 parents 75f7d3b + 63f6534 commit c10e6ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@flexiblepersistence/sequelize",
"version": "2.2.25",
"version": "2.2.26",
"description": "A Sequelize implementation for Flexible Persistence's PersistenceAdapter",
"main": "dist/source/index.js",
"keywords": [
Expand Down
5 changes: 5 additions & 0 deletions source/sequelizePersistence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ export class SequelizePersistence implements IPersistence {
include?: Includeable | Includeable[],
group?: GroupOption,
order?: Order,
attributes?: ModelAttributes,
data?,
receivedMethod?: string,
input?: IInput<unknown, unknown>,
Expand All @@ -384,6 +385,7 @@ export class SequelizePersistence implements IPersistence {
limit,
offset,
include,
attributes: group ? attributes : undefined,
group,
order,
transaction,
Expand All @@ -399,6 +401,7 @@ export class SequelizePersistence implements IPersistence {
limit,
offset,
include,
attributes: group ? attributes : undefined,
group,
order,
transaction,
Expand Down Expand Up @@ -489,6 +492,7 @@ export class SequelizePersistence implements IPersistence {
const include = element.getMethodInclude(method, receivedMethod, selected);
const group = element.getMethodGroup(method, receivedMethod, selected);
const order = element.getMethodOrder(method, receivedMethod, selected);
const attributes = element.getAttributes(selected) as ModelAttributes;
const transaction = await this.sequelize.transaction();
return await this.sendRequest(
element,
Expand All @@ -500,6 +504,7 @@ export class SequelizePersistence implements IPersistence {
include,
group,
order,
attributes,
data,
isSingleDeleteOrUpdate ? receivedMethod : undefined,
input,
Expand Down

0 comments on commit c10e6ca

Please sign in to comment.