Skip to content

Commit 2aaf17e

Browse files
authored
feat(3058): Update auth module to use lockbox/self-assign changes (#22)
* Use self-assign branch of auth * Update auth * Use auth main * Fix tests
1 parent 0d6dd9d commit 2aaf17e

4 files changed

Lines changed: 6 additions & 3 deletions

File tree

app/src/nest/communities/sync/log-entry-sync.service.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ describe('LogEntrySyncManager', () => {
289289
const storedSyncContents =
290290
await dataSyncStorage!.getLogEntriesForCommunity(
291291
testTeam.team.id,
292-
payload.encEntry.ts - 10_000,
292+
payload.encEntry.ts - 20_000,
293293
)
294294
expect(storedSyncContents).toBeDefined()
295295
expect(storedSyncContents!.length).toBe(1)

app/src/nest/communities/sync/log-entry-sync.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ export class LogEntrySyncManager implements OnModuleDestroy {
106106

107107
const maxBytes = 1000 * 1000 * 0.8 // maximum 1MB with 20% buffer
108108
const entries: LogEntrySyncEntity[] = []
109+
/* eslint-disable-next-line @typescript-eslint/prefer-destructuring -- sigh */
109110
let cursor = payload.cursor
110111
let hasNextPage = false
111112
let usedBytes = 0

app/test/utils/team.utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ export class TeamTestUtils {
4545
deviceName: deviceName,
4646
})
4747
const testUserContext: LocalUserContext = { user, device }
48-
const team = createTeam(teamName, testUserContext) as Team
48+
const team = createTeam(teamName, testUserContext, undefined, {
49+
selfAssignableRoles: ['member'],
50+
}) as Team
4951
team.addRole('member')
5052
team.addMemberRole(user.userId, 'member')
5153

0 commit comments

Comments
 (0)