refactor: migrate services (sticky) from apps/web to @plane/services

This commit is contained in:
Rahulcheryala
2026-06-04 12:49:17 +05:30
parent 0f0104fcac
commit 813de842e9
2 changed files with 3 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ import { observable, action, makeObservable, runInAction } from "mobx";
import { computedFn } from "mobx-utils";
import { STICKIES_PER_PAGE } from "@plane/constants";
import type { InstructionType, TLoader, TPaginationInfo, TSticky } from "@plane/types";
import { StickyService } from "@/services/sticky.service";
import { StickyService } from "@plane/services";
export interface IStickyStore {
creatingSticky: boolean;
@@ -205,7 +205,7 @@ export class StickyStore implements IStickyStore {
} catch (error) {
console.error("Error in updating sticky:", error);
this.stickies[id] = sticky;
throw new Error();
throw new Error("Error in updating sticky", { cause: error });
}
};

View File

@@ -8,7 +8,7 @@
import { STICKIES_PER_PAGE, API_BASE_URL } from "@plane/constants";
import type { TSticky } from "@plane/types";
// services
import { APIService } from "@/services/api.service";
import { APIService } from "../api.service";
export class StickyService extends APIService {
constructor() {