mirror of
https://github.com/twentyhq/twenty.git
synced 2024-11-26 13:42:44 +03:00
Fix contributor script (#7040)
We had an issue affecting twenty.com/contributors ; this should probably fix it
This commit is contained in:
parent
872f52990a
commit
64756dc699
@ -25,7 +25,14 @@ export async function saveIssuesToDB(
|
||||
isEmployee: assignableUsers.has(issue.author.login) ? '1' : '0',
|
||||
},
|
||||
],
|
||||
{ onConflictKey: 'id' },
|
||||
{
|
||||
onConflictKey: 'id',
|
||||
onConflictUpdateObject: {
|
||||
avatarUrl: issue.author.avatarUrl,
|
||||
url: issue.author.url,
|
||||
isEmployee: assignableUsers.has(issue.author.login) ? '1' : '0',
|
||||
},
|
||||
},
|
||||
);
|
||||
|
||||
await insertMany(
|
||||
@ -44,7 +51,14 @@ export async function saveIssuesToDB(
|
||||
],
|
||||
{
|
||||
onConflictKey: 'id',
|
||||
onConflictUpdateObject: { updatedAt: issue.updatedAt },
|
||||
onConflictUpdateObject: {
|
||||
title: issue.title,
|
||||
body: issue.body,
|
||||
url: issue.url,
|
||||
updatedAt: issue.updatedAt,
|
||||
closedAt: issue.closedAt,
|
||||
authorId: issue.author.login,
|
||||
},
|
||||
},
|
||||
);
|
||||
|
||||
@ -59,7 +73,14 @@ export async function saveIssuesToDB(
|
||||
description: label.description,
|
||||
},
|
||||
],
|
||||
{ onConflictKey: 'id' },
|
||||
{
|
||||
onConflictKey: 'id',
|
||||
onConflictUpdateObject: {
|
||||
name: label.name,
|
||||
color: label.color,
|
||||
description: label.description,
|
||||
},
|
||||
},
|
||||
);
|
||||
await insertMany(issueLabelModel, [
|
||||
{
|
||||
|
@ -26,7 +26,14 @@ export async function savePRsToDB(
|
||||
isEmployee: assignableUsers.has(pr.author.login) ? '1' : '0',
|
||||
},
|
||||
],
|
||||
{ onConflictKey: 'id' },
|
||||
{
|
||||
onConflictKey: 'id',
|
||||
onConflictUpdateObject: {
|
||||
avatarUrl: pr.author.avatarUrl,
|
||||
url: pr.author.url,
|
||||
isEmployee: assignableUsers.has(pr.author.login) ? '1' : '0',
|
||||
},
|
||||
},
|
||||
);
|
||||
|
||||
await insertMany(
|
||||
@ -46,7 +53,15 @@ export async function savePRsToDB(
|
||||
],
|
||||
{
|
||||
onConflictKey: 'id',
|
||||
onConflictUpdateObject: { title: pr.title, updatedAt: pr.updatedAt },
|
||||
onConflictUpdateObject: {
|
||||
title: pr.title,
|
||||
body: pr.body,
|
||||
url: pr.url,
|
||||
updatedAt: pr.updatedAt,
|
||||
closedAt: pr.closedAt,
|
||||
mergedAt: pr.mergedAt,
|
||||
authorId: pr.author.login,
|
||||
},
|
||||
},
|
||||
);
|
||||
|
||||
@ -61,7 +76,14 @@ export async function savePRsToDB(
|
||||
description: label.description,
|
||||
},
|
||||
],
|
||||
{ onConflictKey: 'id' },
|
||||
{
|
||||
onConflictKey: 'id',
|
||||
onConflictUpdateObject: {
|
||||
name: label.name,
|
||||
color: label.color,
|
||||
description: label.description,
|
||||
},
|
||||
},
|
||||
);
|
||||
await insertMany(pullRequestLabelModel, [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user