mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
Appease the linter
This commit is contained in:
parent
8fa56de2bb
commit
ad3c0d7f11
@ -51,7 +51,7 @@ interface SetSelectedRequest {
|
|||||||
@Path("/api/v1/dimension/stickers")
|
@Path("/api/v1/dimension/stickers")
|
||||||
export class DimensionStickerService {
|
export class DimensionStickerService {
|
||||||
|
|
||||||
public static async getStickerPacks(enabledOnly: boolean = false): Promise<MemoryStickerPack[]> {
|
public static async getStickerPacks(enabledOnly = false): Promise<MemoryStickerPack[]> {
|
||||||
const cachedPacks = Cache.for(CACHE_STICKERS).get("packs");
|
const cachedPacks = Cache.for(CACHE_STICKERS).get("packs");
|
||||||
if (cachedPacks) {
|
if (cachedPacks) {
|
||||||
if (enabledOnly) return cachedPacks.filter(p => p.isEnabled);
|
if (enabledOnly) return cachedPacks.filter(p => p.isEnabled);
|
||||||
|
Loading…
Reference in New Issue
Block a user