diff --git a/apps/web/core/store/sticky/sticky.store.ts b/apps/web/core/store/sticky/sticky.store.ts index 0983321450..1f519bfbec 100644 --- a/apps/web/core/store/sticky/sticky.store.ts +++ b/apps/web/core/store/sticky/sticky.store.ts @@ -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 }); } }; diff --git a/apps/web/core/services/sticky.service.ts b/packages/services/src/stickies/sticky.service.ts similarity index 97% rename from apps/web/core/services/sticky.service.ts rename to packages/services/src/stickies/sticky.service.ts index ff4491e8ed..1e9b6a7982 100644 --- a/apps/web/core/services/sticky.service.ts +++ b/packages/services/src/stickies/sticky.service.ts @@ -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() {