Working fixing integrations race condition

This commit is contained in:
Tuan Dang
2023-01-13 16:36:34 +07:00
parent f57f3e6475
commit 6992c51e17
2 changed files with 116 additions and 117 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ const validateSecrets = async ({
try { try {
secrets = await Secret.find({ secrets = await Secret.find({
_id: { _id: {
$in: secretIds $in: secretIds.map((secretId: string) => new Types.ObjectId(secretId))
} }
}); });
+1 -2
View File
@@ -1,4 +1,4 @@
import axios from 'axios'; import axios, { AxiosError } from 'axios';
import * as Sentry from '@sentry/node'; import * as Sentry from '@sentry/node';
import { Octokit } from '@octokit/rest'; import { Octokit } from '@octokit/rest';
// import * as sodium from 'libsodium-wrappers'; // import * as sodium from 'libsodium-wrappers';
@@ -145,7 +145,6 @@ const syncSecretsVercel = async ({
secrets: any; secrets: any;
accessToken: string; accessToken: string;
}) => { }) => {
interface VercelSecret { interface VercelSecret {
id?: string; id?: string;
type: string; type: string;