format
This commit is contained in:
parent
020c02476a
commit
324ec9e095
|
@ -1,3 +1,3 @@
|
||||||
export function sqlLikeEscape(s: string) {
|
export function sqlLikeEscape(s: string) {
|
||||||
return s.replace(/([%_])/g, '\\$1');
|
return s.replace(/([%_])/g, "\\$1");
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,7 +65,5 @@ export default define(meta, paramDef, async (ps, me) => {
|
||||||
|
|
||||||
const channels = await query.take(ps.limit).getMany();
|
const channels = await query.take(ps.limit).getMany();
|
||||||
|
|
||||||
return await Promise.all(
|
return await Promise.all(channels.map((x) => Channels.pack(x, me)));
|
||||||
channels.map((x) => Channels.pack(x, me)),
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue