Skip to content

Commit

Permalink
rename sync enable to backfill
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendonovich committed Apr 26, 2024
1 parent c24b097 commit ef1a9c6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/src/api/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub(crate) fn mount() -> AlphaRouter<Ctx> {
.await?)
})
})
.procedure("enable", {
.procedure("backfill", {
R.with2(library())
.mutation(|(node, library), _: ()| async move {
if library
Expand Down
4 changes: 2 additions & 2 deletions interface/app/$libraryId/debug/sync.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const Component = () => {
const syncEnabled = useLibraryQuery(['sync.enabled']);

const messages = useLibraryQuery(['sync.messages']);
const enableSync = useLibraryMutation(['sync.enable'], {
const backfillSync = useLibraryMutation(['sync.backfill'], {
onSuccess: async () => {
await syncEnabled.refetch();
await messages.refetch();
Expand All @@ -43,7 +43,7 @@ export const Component = () => {
onClick={() => {
dialogManager.create((dialogProps) => <SyncBackfillDialog {...dialogProps} />);
}}
disabled={enableSync.isLoading}
disabled={backfillSync.isLoading}
>
Enable sync messages
</Button>
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export type Procedures = {
{ key: "search.saved.create", input: LibraryArgs<{ name: string; target?: SearchTarget; search?: string | null; filters?: string | null; description?: string | null; icon?: string | null }>, result: null } |
{ key: "search.saved.delete", input: LibraryArgs<number>, result: null } |
{ key: "search.saved.update", input: LibraryArgs<[number, Args]>, result: null } |
{ key: "sync.enable", input: LibraryArgs<null>, result: null } |
{ key: "sync.backfill", input: LibraryArgs<null>, result: null } |
{ key: "tags.assign", input: LibraryArgs<{ targets: Target[]; tag_id: number; unassign: boolean }>, result: null } |
{ key: "tags.create", input: LibraryArgs<TagCreateArgs>, result: Tag } |
{ key: "tags.delete", input: LibraryArgs<number>, result: null } |
Expand Down

0 comments on commit ef1a9c6

Please sign in to comment.