mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-01-04 09:55:33 +10:00
switch everywhere to use Snapshot.pk and ArchiveResult.pk instead of id
This commit is contained in:
@@ -47,6 +47,6 @@ def check_api_token(request, token_data: TokenAuthSchema):
|
||||
request=request,
|
||||
)
|
||||
if user:
|
||||
return {"success": True, "user_id": str(user.id)}
|
||||
return {"success": True, "user_id": str(user.pk)}
|
||||
|
||||
return {"success": False, "user_id": None}
|
||||
|
||||
Reference in New Issue
Block a user