fix: auth register - correct column name created_at
Error: column 'created' of relation 'profiles' does not exist Fix: Changed 'created' to 'created_at' in INSERT statement Line: backend/routers/auth.py:247
This commit is contained in:
parent
46d000d6b3
commit
df569bbf6e
|
|
@ -244,7 +244,7 @@ async def register(req: RegisterRequest, request: Request):
|
|||
INSERT INTO profiles (
|
||||
id, name, email, pin_hash, auth_type, role, tier,
|
||||
email_verified, verification_token, verification_expires,
|
||||
trial_ends_at, created
|
||||
trial_ends_at, created_at
|
||||
) VALUES (%s, %s, %s, %s, 'email', 'user', 'free', FALSE, %s, %s, %s, CURRENT_TIMESTAMP)
|
||||
""", (profile_id, name, email, pin_hash, verification_token, verification_expires, trial_ends))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user