Skip to content

Commit

Permalink
🏗️build: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
blinko-space committed Nov 10, 2024
1 parent d713db5 commit 9abb8a3
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/server/routers/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { router, authProcedure } from '../trpc';
import { z } from 'zod';
import { prisma } from '../prisma';
import { GlobalConfig, ZConfigKey, ZConfigSchema } from '../types';
import { configSchema } from 'prisma/zod';
import { configSchema } from '@/lib/prismaZodType';

export const getGlobalConfig = async () => {
const config = await prisma.config.findMany()
Expand Down
2 changes: 1 addition & 1 deletion src/server/routers/note.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { NoteType } from '../types';
import path from 'path';
import { UPLOAD_FILE_PATH } from '@/lib/constant';
import { unlink } from 'fs/promises';
import { attachmentsSchema, notesSchema, tagsToNoteSchema } from 'prisma/zod';
import { attachmentsSchema, notesSchema, tagsToNoteSchema } from '@/lib/prismaZodType';

const extractHashtags = (input: string): string[] => {
const hashtagRegex = /#[^\s#]+(?<![*?.。])/g;
Expand Down
2 changes: 1 addition & 1 deletion src/server/routers/tag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { router, authProcedure, demoAuthMiddleware } from '../trpc';
import { z } from 'zod';
import { prisma } from '../prisma';
import { caller } from './_app';
import { tagSchema } from 'prisma/zod';
import { tagSchema } from '@/lib/prismaZodType';

export const tagRouter = router({
list: authProcedure
Expand Down
2 changes: 1 addition & 1 deletion src/server/routers/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { prisma } from '../prisma';
import { DBJob } from '../plugins/dbjob';
import { ArchiveJob } from '../plugins/archivejob';
import { ARCHIVE_BLINKO_TASK_NAME, DBBAK_TASK_NAME } from '@/lib/constant';
import { scheduledTaskSchema } from 'prisma/zod';
import { scheduledTaskSchema } from '@/lib/prismaZodType';

export const taskRouter = router({
list: authProcedure
Expand Down

0 comments on commit 9abb8a3

Please sign in to comment.