SequelizeDatabaseError While Upserting, Wrong Table Being Referenced
1
vote
1
answer
448
views
I'm selecting from a table, and the query runs fine. It even shows up on the client side without a hitch.
`
SELECT * FROM public."roleAllocation"
`
However, when I run an upsert function from a query that pulls data from other tables in the db, it throws a Sequelize error.
SequelizeDatabaseError: relation "roleAllocations" does not exist
I've tried to find any spelling errors, no luck. From what I've found online it's said to be a trigger in the database that might be changing the name of the table. There seems to be no triggers in the database.
PostgreSQL@9.5.13
Asked by Kevin Johar
(21 rep)
Jun 12, 2018, 03:34 PM
Last activity: Dec 26, 2024, 05:03 PM
Last activity: Dec 26, 2024, 05:03 PM