Skip to content

Generate ID when inserting group membership because the DB isn't doin…#32

Merged
jmgasper merged 1 commit into
masterfrom
develop
Feb 10, 2026
Merged

Generate ID when inserting group membership because the DB isn't doin…#32
jmgasper merged 1 commit into
masterfrom
develop

Conversation

@jmgasper
Copy link
Copy Markdown
Contributor

@jmgasper jmgasper commented Feb 9, 2026

…g it

}

private async addUserToGroupByGroupId(userId: number, groupId: string) {
const groupMemberId = crypto.randomUUID();
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[⚠️ correctness]
Using crypto.randomUUID() is a good choice for generating unique IDs, but ensure that the database column id in GroupMember can handle UUIDs if it wasn't previously. Verify the column type to prevent potential issues.

@jmgasper jmgasper merged commit f2dadae into master Feb 10, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant