diff --git a/libs/model/src/tester/e2eSeeds.ts b/libs/model/src/tester/e2eSeeds.ts index 53684a9e853..a14fa907961 100644 --- a/libs/model/src/tester/e2eSeeds.ts +++ b/libs/model/src/tester/e2eSeeds.ts @@ -190,6 +190,8 @@ export const e2eTestEntities = async function ( await testDb.Thread.findOrCreate({ where: { id: -i - 1, + }, + defaults: { address_id: -1, title: `testThread Title ${-i - 1}`, body: `testThread Body ${-i - 1}`, @@ -197,6 +199,11 @@ export const e2eTestEntities = async function ( topic_id: -1, kind: 'discussion', plaintext: 'text', + stage: 'discussion', + view_count: 0, + reaction_count: 0, + reaction_weights_sum: 0, + comment_count: 0, search: getThreadSearchVector( `testThread Title ${-i - 1}`, `testThread Body ${-i - 1}`, @@ -216,6 +223,8 @@ export const e2eTestEntities = async function ( await testDb.Thread.findOrCreate({ where: { id: -i - 1 - 2, + }, + defaults: { address_id: -2, title: `testThread Title ${-i - 1 - 2}`, body: `testThread Body ${-i - 1 - 2}`, @@ -223,6 +232,11 @@ export const e2eTestEntities = async function ( topic_id: -2, kind: 'discussion', plaintext: 'text', + stage: 'discussion', + view_count: 0, + reaction_count: 0, + reaction_weights_sum: 0, + comment_count: 0, search: getThreadSearchVector( `testThread Title ${-i - 1 - 2}`, `testThread Body ${-i - 1 - 2}`,