Sqlite doesn't allow BigInteger to be used as an primary key with autoincrement

This commit is contained in:
grossmj
2021-09-23 11:05:03 +09:30
parent d8bceaad5d
commit b683659d21
3 changed files with 6 additions and 6 deletions

View File

@ -124,7 +124,7 @@ async def delete_image(
if not image:
raise ControllerNotFoundError(f"Image '{image_path}' not found")
if await images_repo.get_image_templates(image.id):
if await images_repo.get_image_templates(image.image_id):
raise ControllerError(f"Image '{image_path}' is used by one or more templates")
try: