summary refs log tree commit diff
path: root/src/api/util
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-04-13 22:41:57 +0200
committerRory& <root@rory.gay>2026-04-13 22:41:57 +0200
commite0204f76cf5427eeb529d03fde988522923ecf2b (patch)
tree88a0ffd543804fa6378e118f97fc0ae7ec77b33a /src/api/util
parentPresence disconnect works! (diff)
downloadserver-ts-e0204f76cf5427eeb529d03fde988522923ecf2b.tar.xz
Make presence clear async, clean up temp session code
Diffstat (limited to 'src/api/util')
-rw-r--r--src/api/util/utility/EmbedHandlers.ts6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/api/util/utility/EmbedHandlers.ts b/src/api/util/utility/EmbedHandlers.ts

index 679424f3..25a33f06 100644 --- a/src/api/util/utility/EmbedHandlers.ts +++ b/src/api/util/utility/EmbedHandlers.ts
@@ -16,7 +16,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. */ -import { arrayDistinctBy, arrayGroupBy, Config, EmbedCache, emitEvent, Message, MessageUpdateEvent, normalizeUrl, OrmUtils } from "@spacebar/util"; +import { arrayDistinctBy, arrayGroupBy, Config, EmbedCache, emitEvent, Message, MessageUpdateEvent, normalizeUrl, OrmUtils, sleep } from "@spacebar/util"; import { Embed, EmbedImage, EmbedType } from "@spacebar/schemas"; import * as cheerio from "cheerio"; import crypto from "crypto"; @@ -572,10 +572,6 @@ export async function dropDuplicateCacheEntries(entries: EmbedCache[]): Promise< ); } -async function sleep(ms: number) { - return new Promise((resolve) => setTimeout(resolve, ms)); -} - // hack to make nodejs not die function getSlowdownFactor(off: number) { if (off < 10) return off;