Skip to content

Commit

Permalink
10491 - trying to fix work items
Browse files Browse the repository at this point in the history
  • Loading branch information
codyseibert committed Oct 2, 2024
1 parent 0f98fef commit b4f8c99
Show file tree
Hide file tree
Showing 6 changed files with 1,131 additions and 1,131 deletions.
2 changes: 0 additions & 2 deletions shared/src/business/test/createTestApplicationContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ import { createCaseAndAssociations } from '@web-api/business/useCaseHelper/caseA
import { createDocketNumber } from '@web-api/persistence/dynamo/cases/docketNumberGenerator';
import { createMockDocumentClient } from './createMockDocumentClient';
import { deleteRecord } from '@web-api/persistence/elasticsearch/deleteRecord';
import { deleteWorkItem } from '@web-api/persistence/dynamo/workitems/deleteWorkItem';
import { documentUrlTranslator } from '@web-api/utilities/documentUrlTranslator';
import { fileAndServeDocumentOnOneCase } from '@web-api/business/useCaseHelper/docketEntry/fileAndServeDocumentOnOneCase';
import { filterEmptyStrings } from '@shared/business/utilities/filterEmptyStrings';
Expand Down Expand Up @@ -472,7 +471,6 @@ export const createTestApplicationContext = () => {
deleteKeyCount: jest.fn(),
deleteLock: jest.fn().mockImplementation(() => Promise.resolve(null)),
deleteRecord: jest.fn().mockImplementation(deleteRecord),
deleteWorkItem: jest.fn(deleteWorkItem),
fetchPendingItems: jest.fn(),
getAllWebSocketConnections: jest
.fn()
Expand Down
6 changes: 3 additions & 3 deletions web-api/src/database-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ export interface WorkItemTable {
associatedJudge: string;
associatedJudgeId?: string;
caseIsInProgress?: boolean;
completedAt?: string;
completedAt?: Date;
completedBy?: string;
completedByUserId?: string;
completedMessage?: string;
createdAt: string;
createdAt: Date;
docketEntry: any;
docketNumber: string;
hideFromPendingMessages?: boolean;
Expand All @@ -71,7 +71,7 @@ export interface WorkItemTable {
sentBy: string;
sentBySection?: string;
sentByUserId?: string;
updatedAt: string;
updatedAt: Date;
workItemId: string;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ export async function up(db: Kysely<any>): Promise<void> {
.addColumn('associatedJudge', 'varchar', col => col.notNull())
.addColumn('associatedJudgeId', 'varchar')
.addColumn('caseIsInProgress', 'boolean')
.addColumn('completedAt', 'varchar')
.addColumn('completedAt', 'timestamptz')
.addColumn('completedBy', 'varchar')
.addColumn('completedByUserId', 'varchar')
.addColumn('completedMessage', 'varchar')
.addColumn('createdAt', 'varchar', col => col.notNull())
.addColumn('createdAt', 'timestamptz', col => col.notNull())
.addColumn('docketEntry', 'jsonb', col => col.notNull())
.addColumn('docketNumber', 'varchar', col => col.notNull())
.addColumn('hideFromPendingMessages', 'boolean')
Expand All @@ -25,7 +25,7 @@ export async function up(db: Kysely<any>): Promise<void> {
.addColumn('sentBy', 'varchar', col => col.notNull())
.addColumn('sentBySection', 'varchar')
.addColumn('sentByUserId', 'varchar')
.addColumn('updatedAt', 'varchar', col => col.notNull())
.addColumn('updatedAt', 'timestamptz', col => col.notNull())
.execute();
}

Expand Down
Loading

0 comments on commit b4f8c99

Please sign in to comment.