Skip to content

Conversation

@MagnumGoYB
Copy link

Removed the manual setting of id when creating records via the Drizzle Adapter to prevent the following warning:

ScreenShot_2025-11-11_220437_041

[Better Auth]: [Drizzle Adapter] - You are trying to create a record with an id. This is not allowed as we handle id generation for you. The id will be ignored.
Copilot AI review requested due to automatic review settings November 11, 2025 14:08
Copilot finished reviewing on behalf of MagnumGoYB November 11, 2025 14:10
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses a warning from the Drizzle Adapter by removing the manual ID setting when creating database records during file uploads. The adapter auto-generates IDs and rejects manual ID specification.

Key changes:

  • Removed explicit id field from adapter.create() call during file upload
  • Captured the returned database record to access the adapter-generated ID
  • Updated response to use the new database-generated ID instead of the pre-generated one

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@zpg6
Copy link
Owner

zpg6 commented Nov 14, 2025

Hi @MagnumGoYB ! Sorry for delay busy work week will check this out during the weekend!

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.

2 participants