Update modules/database/sql_db.py
Browse files
modules/database/sql_db.py
CHANGED
@@ -49,10 +49,7 @@ def create_user(username, password, role, additional_info=None):
|
|
49 |
'partitionKey': username # Añadir partition key al documento
|
50 |
}
|
51 |
|
52 |
-
container.create_item(
|
53 |
-
body=user_data,
|
54 |
-
enable_cross_partition_query=True
|
55 |
-
)
|
56 |
logger.info(f"Usuario {role} creado: {username}")
|
57 |
return True
|
58 |
|
|
|
49 |
'partitionKey': username # Añadir partition key al documento
|
50 |
}
|
51 |
|
52 |
+
container.create_item(body=user_data)
|
|
|
|
|
|
|
53 |
logger.info(f"Usuario {role} creado: {username}")
|
54 |
return True
|
55 |
|