Skip to content

Commit

Permalink
update migration files and template for user story submissions
Browse files Browse the repository at this point in the history
  • Loading branch information
trigal2012 committed Jan 29, 2025
1 parent fbcc14b commit 7aa1971
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion prisma/data-migrations/!YYYY_MM_DD_new-job-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ if (storyId) {
console.log(`Response2ES: ${response2ES}`);
console.log(`Categories: ${JSON.stringify(categories)}`);
const pronounIds = pronouns.map((pronoun) => pronoun.id);
console.log('Resolved Pronoun IDs:', pronounIds); // Log only IDs
console.log('Resolved Pronoun IDs:', pronounIds); // Log only IDs

try {
// Update the existing story
Expand All @@ -147,6 +147,7 @@ console.log('Resolved Pronoun IDs:', pronounIds); // Log only IDs
data: {
response1ES,
response2ES,
published: true,
},
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const jobDef: JobDef = {
*
* @example `job20230404b`
*/
export const jobId = {
export const job20250128a = {
title: `${new Date().toISOString().split('T')[0]}_${jobDef.storySubmissionId}`,
task: async (_ctx, task) => {
/**
Expand Down Expand Up @@ -148,6 +148,7 @@ console.log('Resolved Pronoun IDs:', pronounIds); // Log only IDs
data: {
response1ES,
response2ES,
published: true,
},
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const jobDef: JobDef = {
*
* @example `job20230404b`
*/
export const jobId = {
export const job20250128b = {
title: `${new Date().toISOString().split('T')[0]}_${jobDef.storySubmissionId}`,
task: async (_ctx, task) => {
/**
Expand Down Expand Up @@ -159,6 +159,7 @@ console.log('Resolved Pronoun IDs:', pronounIds); // Log only IDs
data: {
response1ES,
response2ES,
published: true,
},
});

Expand Down

0 comments on commit 7aa1971

Please sign in to comment.