Merge pull request #426 from Dokploy/fix/correct-path-compose

Fix/correct path compose
This commit is contained in:
Mauricio Siu 2024-09-07 13:18:44 -06:00 committed by GitHub
commit 1bec376f6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 5 deletions

View File

@ -174,11 +174,11 @@ export const deployCompose = async ({
try {
if (compose.sourceType === "github") {
await cloneGithubRepository(compose, deployment.logPath);
await cloneGithubRepository(compose, deployment.logPath, true);
} else if (compose.sourceType === "gitlab") {
await cloneGitlabRepository(compose, deployment.logPath);
await cloneGitlabRepository(compose, deployment.logPath, true);
} else if (compose.sourceType === "bitbucket") {
await cloneBitbucketRepository(compose, deployment.logPath);
await cloneBitbucketRepository(compose, deployment.logPath, true);
} else if (compose.sourceType === "git") {
await cloneGitRepository(compose, deployment.logPath, true);
} else if (compose.sourceType === "raw") {

View File

@ -78,6 +78,7 @@ export function parseRawConfig(
status.some((range) => isStatusInRange(log.DownstreamStatus, range)),
);
}
const totalCount = parsedLogs.length;
if (sort) {
parsedLogs = _.orderBy(
@ -94,8 +95,6 @@ export function parseRawConfig(
parsedLogs = parsedLogs.slice(startIndex, startIndex + page.pageSize);
}
const totalCount = parsedLogs.length;
return { data: parsedLogs, totalCount };
} catch (error) {
console.error("Error parsing rawConfig:", error);