Skip to content

Commit

Permalink
feat(api): remove unused updatedAt value
Browse files Browse the repository at this point in the history
  • Loading branch information
P-Jeremy committed Jan 29, 2025
1 parent 0d70f62 commit 6afe5db
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const findByUserId = async function (userId) {
const organizations = await knex('memberships')
.select({
id: 'memberships.id',
updatedAt: 'memberships.updatedAt',
organizationRole: 'memberships.organizationRole',
organizationId: 'memberships.organizationId',
organizationName: 'organizations.name',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const { Serializer } = jsonapiSerializer;
const serialize = function (organization) {
return new Serializer('organization-membership', {
attributes: [
'updatedAt',
'organizationRole',
'organizationId',
'organizationName',
Expand Down
2 changes: 0 additions & 2 deletions api/src/shared/domain/read-models/UserOrganizationForAdmin.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
class UserOrganizationForAdmin {
constructor({
id,
updatedAt,
organizationRole,
organizationId,
organizationName,
organizationType,
organizationExternalId,
} = {}) {
this.id = id;
this.updatedAt = updatedAt;
this.organizationRole = organizationRole;
this.organizationId = organizationId;
this.organizationName = organizationName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ describe('Integration | Repository | user-organizations-for-admin', function ()
.to.be.instanceOf(UserOrganizationForAdmin)
.to.has.all.keys(
'id',
'updatedAt',
'organizationRole',
'organizationId',
'organizationName',
Expand All @@ -121,7 +120,6 @@ describe('Integration | Repository | user-organizations-for-admin', function ()
.to.be.instanceOf(UserOrganizationForAdmin)
.to.has.all.keys(
'id',
'updatedAt',
'organizationRole',
'organizationId',
'organizationName',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ describe('Unit | Serializer | JSONAPI | user-organization-for-admin-serializer',
// given
const userOrganizationForAdmin1 = new UserOrganizationForAdmin({
id: 42,
updatedAt: '2001-01-01',
organizationRole: 'MEMBER',
organizationId: 52,
organizationName: 'Organization 1',
Expand All @@ -17,7 +16,6 @@ describe('Unit | Serializer | JSONAPI | user-organization-for-admin-serializer',
});
const userOrganizationForAdmin2 = new UserOrganizationForAdmin({
id: 43,
updatedAt: '2001-01-01',
organizationRole: 'ADMIN',
organizationId: 53,
organizationName: 'Organization 2',
Expand All @@ -39,7 +37,6 @@ describe('Unit | Serializer | JSONAPI | user-organization-for-admin-serializer',
'organization-name': 'Organization 1',
'organization-type': 'SCO',
'organization-role': 'MEMBER',
'updated-at': '2001-01-01',
},
id: '42',
type: 'organization-memberships',
Expand All @@ -51,7 +48,6 @@ describe('Unit | Serializer | JSONAPI | user-organization-for-admin-serializer',
'organization-name': 'Organization 2',
'organization-type': 'SUP',
'organization-role': 'ADMIN',
'updated-at': '2001-01-01',
},
id: '43',
type: 'organization-memberships',
Expand Down

0 comments on commit 6afe5db

Please sign in to comment.