This commit is contained in:
naskya 2023-05-07 09:46:07 +09:00
parent 020c02476a
commit 324ec9e095
No known key found for this signature in database
GPG key ID: 164DFF24E2D40139
3 changed files with 35 additions and 37 deletions

View file

@ -1,3 +1,3 @@
export function sqlLikeEscape(s: string) {
return s.replace(/([%_])/g, '\\$1');
return s.replace(/([%_])/g, "\\$1");
}

View file

@ -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)));
});