Skip to content

Commit e05e964

Browse files
committed
Always become root before becoming a user
1 parent 4cac680 commit e05e964

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

@app/db/__tests__/helpers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export const becomeUser = async (
8585
client: PoolClient,
8686
userOrUserId: User | number | null
8787
) => {
88+
await becomeRoot(client);
8889
const session = userOrUserId
8990
? await createSession(
9091
client,

0 commit comments

Comments
 (0)