Skip to content

Commit

Permalink
Update primary key column name
Browse files Browse the repository at this point in the history
  • Loading branch information
wilwong89 committed Dec 18, 2024
1 parent 07f28d5 commit 30b8463
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/db/migrations/20241216000000_017-ches-logging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export async function up(knex: Knex): Promise<void> {
// Create public schema tables
knex.schema
.createTable('email_log', (table) => {
table.uuid('email_id').primary();
table.uuid('email_log_id').primary();
table.integer('http_status').defaultTo(null);
table.uuid('msg_id').defaultTo(null);
table.text('to').defaultTo(null);
Expand Down
3 changes: 2 additions & 1 deletion app/src/services/email.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import axios from 'axios';
import config from 'config';
import prisma from '../db/dataConnection';
import { v4 as uuidv4 } from 'uuid';

import prisma from '../db/dataConnection';

import type { AxiosInstance } from 'axios';
import type { Email } from '../types';

Expand Down

0 comments on commit 30b8463

Please sign in to comment.