Skip to content

Commit fbcf5aa

Browse files
committed
Forgot to remove assigning credits 🤦
1 parent 5fdf986 commit fbcf5aa

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

‎app/core/security.py‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,6 @@ async def create_user(email: str, password: str):
4747
})
4848

4949

50-
user = session.user
51-
52-
db.table('credits').insert({
53-
'user_id': user.id,
54-
'balance': settings.USER_DAILY_CREDITS # starting balance for registered users
55-
}).execute()
56-
57-
58-
user = session.user
59-
60-
db.table('credits').insert({
61-
'user_id': user.id,
62-
'balance': settings.USER_DAILY_CREDITS # starting balance for registered users
63-
}).execute()
64-
6550
def create_api_key(user) -> str:
6651
"""Create JWT token for API authentication"""
6752

0 commit comments

Comments
 (0)