diff --git a/packages/backend/src/misc/sql-like-escape.ts b/packages/backend/src/misc/sql-like-escape.ts index 8470dca3de..453947d6ec 100644 --- a/packages/backend/src/misc/sql-like-escape.ts +++ b/packages/backend/src/misc/sql-like-escape.ts @@ -1,3 +1,3 @@ export function sqlLikeEscape(s: string) { - return s.replace(/([%_])/g, '\\$1'); + return s.replace(/([%_])/g, "\\$1"); } diff --git a/packages/backend/src/server/api/endpoints/channels/search.ts b/packages/backend/src/server/api/endpoints/channels/search.ts index 5758d81a67..b21fa76206 100644 --- a/packages/backend/src/server/api/endpoints/channels/search.ts +++ b/packages/backend/src/server/api/endpoints/channels/search.ts @@ -65,7 +65,5 @@ export default define(meta, paramDef, async (ps, me) => { const channels = await query.take(ps.limit).getMany(); - return await Promise.all( - channels.map((x) => Channels.pack(x, me)), - ); + return await Promise.all(channels.map((x) => Channels.pack(x, me))); }); diff --git a/packages/client/src/pages/channels.vue b/packages/client/src/pages/channels.vue index 5c87027878..705b996710 100644 --- a/packages/client/src/pages/channels.vue +++ b/packages/client/src/pages/channels.vue @@ -22,39 +22,39 @@ >