From 08cd73e403fc543900cb78b21c7bc1f29b4df835 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Sun, 11 Dec 2022 15:19:41 -0800 Subject: [PATCH] fix?? --- package.json | 2 +- .../backend/src/server/api/endpoints/i/gallery/posts.ts | 4 ++-- packages/client/src/pages/gallery/index.vue | 6 +++++- packages/client/src/pages/pages.vue | 6 +++++- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index e9ef4a164..8dd9a8692 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "calckey", - "version": "12.119.0-calc.19-b17", + "version": "12.119.0-calc.19-b18", "codename": "aqua", "repository": { "type": "git", diff --git a/packages/backend/src/server/api/endpoints/i/gallery/posts.ts b/packages/backend/src/server/api/endpoints/i/gallery/posts.ts index b4edb5f73..2ecd47f1b 100644 --- a/packages/backend/src/server/api/endpoints/i/gallery/posts.ts +++ b/packages/backend/src/server/api/endpoints/i/gallery/posts.ts @@ -1,5 +1,5 @@ -import define from '../../../define.js'; import { GalleryPosts } from '@/models/index.js'; +import define from '../../../define.js'; import { makePaginationQuery } from '../../../common/make-pagination-query.js'; export const meta = { @@ -33,7 +33,7 @@ export const paramDef = { // eslint-disable-next-line import/no-default-export export default define(meta, paramDef, async (ps, user) => { const query = makePaginationQuery(GalleryPosts.createQueryBuilder('post'), ps.sinceId, ps.untilId) - .andWhere(`post.userId = :meId`, { meId: user.id }); + .andWhere('post.userId = :meId', { meId: user.id }); const posts = await query .take(ps.limit) diff --git a/packages/client/src/pages/gallery/index.vue b/packages/client/src/pages/gallery/index.vue index f51c0a0cf..20a1d380c 100644 --- a/packages/client/src/pages/gallery/index.vue +++ b/packages/client/src/pages/gallery/index.vue @@ -49,7 +49,7 @@