From 5d0933ba03e46f152d5efc4085f75a106544051d Mon Sep 17 00:00:00 2001 From: Meng <43998638+Meng-V@users.noreply.github.com> Date: Tue, 23 Sep 2025 12:17:52 -0400 Subject: [PATCH] Update post-deploy-verify.js --- scripts/post-deploy-verify.js | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/scripts/post-deploy-verify.js b/scripts/post-deploy-verify.js index 11a19471..c15d4023 100644 --- a/scripts/post-deploy-verify.js +++ b/scripts/post-deploy-verify.js @@ -47,7 +47,7 @@ async function testSequenceOperations() { const testEBook = await prisma.list_EBook.create({ data: { title: "SEQUENCE_TEST_EBOOK", - type: "test", + description: "test verification record", is_global: false, updated_at: new Date(), } @@ -66,6 +66,35 @@ async function testSequenceOperations() { await prisma.list_EBook_Counts.delete({ where: { id: testCount.id } }); await prisma.list_EBook.delete({ where: { id: testEBook.id } }); + return { success: true, id: testCount.id }; + } + }, + { + name: "List_EJournal_Counts", + test: async () => { + const testEJournal = await prisma.list_EJournal.create({ + data: { + title: "SEQUENCE_TEST_EJOURNAL", + description: "test verification record", + is_global: false, + updated_at: new Date(), + } + }); + + const testCount = await prisma.list_EJournal_Counts.create({ + data: { + journals: 1, + dbs: 1, + year: 2025, + updatedat: new Date(), + ishidden: false, + listejournal: testEJournal.id, + } + }); + + await prisma.list_EJournal_Counts.delete({ where: { id: testCount.id } }); + await prisma.list_EJournal.delete({ where: { id: testEJournal.id } }); + return { success: true, id: testCount.id }; } }