fix(etl): sql enum for image storage
This commit is contained in:
parent
f983ed1035
commit
fe1bf7ec10
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ async def get_or_create_image(
|
||||||
VALUES (%s, %s)
|
VALUES (%s, %s)
|
||||||
RETURNING id
|
RETURNING id
|
||||||
""",
|
""",
|
||||||
("image-service", rel_path),
|
("local", rel_path),
|
||||||
)
|
)
|
||||||
row = await cur.fetchone()
|
row = await cur.fetchone()
|
||||||
return row["id"]
|
return row["id"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue