pl-api: format

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2025-08-04 23:57:13 +02:00
parent 79307a3b53
commit f3e655e6cd
2 changed files with 8 additions and 2 deletions

View File

@ -36,6 +36,12 @@ jobs:
working-directory: . working-directory: .
run: pnpm install run: pnpm install
- name: Build pl-api
env:
NODE_ENV: production
working-directory: ./packages/pl-api
run: pnpm build
- name: Lint - name: Lint
working-directory: ./packages/pl-hooks working-directory: ./packages/pl-hooks
run: pnpm lint run: pnpm lint

View File

@ -102,8 +102,8 @@ const notificationSchema: v.BaseSchema<any, Notification, v.BaseIssue<unknown>>
type: notification.type === 'pleroma:report' type: notification.type === 'pleroma:report'
? 'admin.report' ? 'admin.report'
: notification.type === 'reaction' : notification.type === 'reaction'
? 'emoji_reaction' ? 'emoji_reaction'
: notification.type?.replace(/^pleroma:/, ''), : notification.type?.replace(/^pleroma:/, ''),
})), })),
v.variant('type', [ v.variant('type', [
accountNotificationSchema, accountNotificationSchema,