Use correct invoke function

This commit is contained in:
Caleb Owens 2024-05-19 00:00:40 +01:00
parent bb1b5ce0e5
commit c1f295f6f4
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
import { invoke } from '@tauri-apps/api/tauri'; import { invoke } from '$lib/backend/ipc';
export class GitConfigService { export class GitConfigService {
async get<T extends string>(key: string): Promise<T | undefined> { async get<T extends string>(key: string): Promise<T | undefined> {

View File

@ -3,8 +3,8 @@
* it's here is because the type is in this package. * it's here is because the type is in this package.
*/ */
import { RemoteFile } from './types'; import { RemoteFile } from './types';
import { invoke } from '$lib/backend/ipc';
import { ContentSection, HunkSection, parseFileSections } from '$lib/utils/fileSections'; import { ContentSection, HunkSection, parseFileSections } from '$lib/utils/fileSections';
import { invoke } from '@tauri-apps/api/tauri';
import { plainToInstance } from 'class-transformer'; import { plainToInstance } from 'class-transformer';
export async function listRemoteCommitFiles(projectId: string, commitOid: string) { export async function listRemoteCommitFiles(projectId: string, commitOid: string) {