mirror of
https://github.com/makeplane/plane.git
synced 2026-07-11 13:00:11 +02:00
refactor: migrate services (sticky) from apps/web to @plane/services
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -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() {
|
||||
Reference in New Issue
Block a user