rename col names
This commit is contained in:
parent
e7342828c8
commit
9e0324b143
2 changed files with 5 additions and 5 deletions
|
|
@ -15,7 +15,7 @@ router.post('/session-npubbed', async (req, res) => {
|
|||
|
||||
try {
|
||||
const existingRecord = await SessionNpubbed.findOne({
|
||||
where: { sessionUuid, npub }
|
||||
where: { 'session_uuid': sessionUuid, npub }
|
||||
});
|
||||
|
||||
if (existingRecord) {
|
||||
|
|
@ -27,8 +27,8 @@ router.post('/session-npubbed', async (req, res) => {
|
|||
console.log("No matching record found. Creating a new one...");
|
||||
|
||||
await SessionNpubbed.create({
|
||||
sessionNpubbedUuid: uuid.v7(),
|
||||
sessionUuid,
|
||||
session_npubbed_uuid: uuid.v7(),
|
||||
session_uuid: sessionUuid,
|
||||
npub,
|
||||
created_at: new Date().toISOString()
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue