Open joshuaja opened 2 months ago
Looks like this might be related to the to-snake-case
npm package. I'm assuming that the variable provided is enableAPIKey
which would translate to a rather silly looking enable_a_p_i_key
column name in the database.
My build was working, but this error started coming up out of no where on my v2 build. Any ideas?
Link to reproduction
https://github.com/DapperMountain/payload-3-bun-template
Environment Info
Describe the Bug
When enabling API Key on a users collection (
auth.useAPIKey = true
) it creates a few columns in the collection database table. The column naming isn't consistent between theenable_a_p_i_key
,api_key
, andapi_key_index
columns. I would recommend changingenable_a_p_i_key
toenable_api_key
to align with the other column names.Reproduction Steps
auth.useAPIKey = true
)enable_a_p_i_key
would better be namedenable_api_key
Adapters and Plugins
db-postgres