Skip to content

Commit

Permalink
fix: upload all edited notes send all files
Browse files Browse the repository at this point in the history
close #275
see #274
  • Loading branch information
Mara-Li committed Jan 18, 2024
1 parent c9c3645 commit e22cf01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/commands/plugin_commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,13 @@ export async function repositoryValidityActiveFile(plugin:GithubPublisher, branc
*/
export async function uploadAllEditedNotes(plugin: GithubPublisher ,branchName: string, repo: Repository|null=null): Promise<void> {
const publisher = await plugin.reloadOctokit();
const repoFrontmatter = getRepoFrontmatter(plugin.settings, repo);

await shareAllEditedNotes(
publisher,
branchName,
{
frontmatter: getRepoFrontmatter(plugin.settings, repo) as RepoFrontmatter,
frontmatter: Array.isArray(repoFrontmatter) ? repoFrontmatter[0] : repoFrontmatter,
repo
} as MonoRepoProperties,
);
Expand Down

0 comments on commit e22cf01

Please sign in to comment.