Renamed Table, broke edge function
I had a working edge function called by a trigger which then updated the table that called it. I renamed the table that was making the call, and then repointed the edge function back to that same table in the JS. But it's somehow attached to the original table name.
The original table name was ios_apps. That's been renamed to ios_app_lookups. I've scoured every piece of code in my system and there's no remaining reference to ios_apps. But the edge function won't stop looking for it. I get this error every time:
"message":"relation "public.ios_apps" does not exist"
Here's the relevant JS Code:
*
const { data, error } = await supabase
.from('ios_app_lookups')
.update({
s_appstore_id:s.id,
s_app_name:s.title,
s_app_identifier:s.bundle_id,
s_app_version:s.version,
s_content_rating:s.age_rating,
// s_app_description:s.description,
s_appstore_url:s.link,
s_price:s.price.extracted_price,
s_average_user_rating:s.rating,
s_reviews:s.reviews,
s_genre:s.genres,
s_app_vendor:s.developer.name,
s_icon:s.logos[0].link,
s_app_bundle_size:s.size_in_bytes,
})
.eq('id', id)
.select()*
The original table name was ios_apps. That's been renamed to ios_app_lookups. I've scoured every piece of code in my system and there's no remaining reference to ios_apps. But the edge function won't stop looking for it. I get this error every time:
"message":"relation "public.ios_apps" does not exist"
Here's the relevant JS Code:
*
const { data, error } = await supabase
.from('ios_app_lookups')
.update({
s_appstore_id:s.id,
s_app_name:s.title,
s_app_identifier:s.bundle_id,
s_app_version:s.version,
s_content_rating:s.age_rating,
// s_app_description:s.description,
s_appstore_url:s.link,
s_price:s.price.extracted_price,
s_average_user_rating:s.rating,
s_reviews:s.reviews,
s_genre:s.genres,
s_app_vendor:s.developer.name,
s_icon:s.logos[0].link,
s_app_bundle_size:s.size_in_bytes,
})
.eq('id', id)
.select()*

