Skip to content

Commit 3b2fc79

Browse files
committed
chore: make prettier and linter happy
Signed-off-by: Yeganathan S <63534555+skwowet@users.noreply.github.com>
1 parent 9217deb commit 3b2fc79

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

backend/src/services/member/memberOrganizationsService.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -218,23 +218,23 @@ export default class MemberOrganizationsService extends LoggerBase {
218218
): Promise<IRenderFriendlyMemberOrganization[]> {
219219
const transaction = await SequelizeRepository.createTransaction(this.options)
220220
const repositoryOptions = { ...this.options, transaction }
221-
221+
222222
try {
223223
const qx = SequelizeRepository.getQueryExecutor(repositoryOptions)
224224

225225
const existing = await fetchMemberOrganizationById(qx, id)
226226
if (!existing || existing.memberId !== memberId) {
227227
throw new Error404(`Member organization with id ${id} not found!`)
228228
}
229-
229+
230230
const hasDateStart = data.dateStart !== undefined
231231
const hasDateEnd = data.dateEnd !== undefined
232232
const targetDateRange = sanitizeMemberOrganizationDateRange(
233233
hasDateStart ? data.dateStart : existing.dateStart,
234234
hasDateEnd ? data.dateEnd : existing.dateEnd,
235235
true,
236236
)
237-
237+
238238
const update = lodash.pickBy(
239239
{
240240
organizationId: data.organizationId,
@@ -251,16 +251,16 @@ export default class MemberOrganizationsService extends LoggerBase {
251251
await cleanSoftDeletedMemberOrganization(qx, memberId, data.organizationId, update)
252252
await updateMemberOrganization(qx, memberId, id, {
253253
...update,
254-
source: OrganizationSource.UI
254+
source: OrganizationSource.UI,
255255
})
256-
256+
257257
// Trigger recalculation for old and new orgs if changed
258258
const orgsToRecalculate = Array.from(
259259
new Set([existing.organizationId, data.organizationId]),
260260
).filter((orgId): orgId is string => Boolean(orgId))
261261

262262
await this.commonMemberService.startAffiliationRecalculation(memberId, orgsToRecalculate)
263-
263+
264264
const result = await this.list(memberId, transaction)
265265

266266
await SequelizeRepository.commitTransaction(transaction)

0 commit comments

Comments
 (0)