feat: migrate pocketbase to v0.23

This commit is contained in:
Fu Diwei
2025-01-18 05:22:18 +08:00
parent 1568e5a2a7
commit 32f9c95dd0
46 changed files with 632 additions and 674 deletions

View File

@@ -1,6 +1,6 @@
import { ClientResponseError } from "pocketbase";
import { getPocketBase } from "@/repository/pocketbase";
import { getPocketBase } from "@/repository/_pocketbase";
export const notifyTest = async (channel: string) => {
const pb = getPocketBase();

View File

@@ -1,7 +1,7 @@
import { ClientResponseError } from "pocketbase";
import { type Statistics } from "@/domain/statistics";
import { getPocketBase } from "@/repository/pocketbase";
import { getPocketBase } from "@/repository/_pocketbase";
export const get = async () => {
const pb = getPocketBase();

View File

@@ -1,7 +1,7 @@
import { ClientResponseError } from "pocketbase";
import { WORKFLOW_TRIGGERS } from "@/domain/workflow";
import { getPocketBase } from "@/repository/pocketbase";
import { getPocketBase } from "@/repository/_pocketbase";
export const run = async (id: string) => {
const pb = getPocketBase();