summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-07-06 11:32:23 +0200
committerRory& <root@rory.gay>2025-07-06 18:03:17 +0200
commit4bcb65ddc4c43ad8c9560993436c52c2f135d42e (patch)
treed0e63f7bffefc221e5bf3bbc1ba394baf7bbe66c /src
parentPrettier (diff)
downloadserver-ts-4bcb65ddc4c43ad8c9560993436c52c2f135d42e.tar.xz
Fix CDN log prefix when fixing attachments
Diffstat (limited to 'src')
-rw-r--r--src/cdn/Server.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cdn/Server.ts b/src/cdn/Server.ts

index cc3f68306..287b29500 100644 --- a/src/cdn/Server.ts +++ b/src/cdn/Server.ts
@@ -138,19 +138,19 @@ export class CDNServer extends Server { where: { url: Like("%?ex=%") }, }); if (attachmentsToFix.length === 0) { - this.log("verbose", "[Server] No attachments to fix"); + this.log("verbose", "[CDN] No attachments to fix"); return; } this.log( "verbose", - `[Server] Found ${attachmentsToFix.length} attachments to fix`, + `[CDN] Found ${attachmentsToFix.length} attachments to fix`, ); for (const attachment of attachmentsToFix) { attachment.url = attachment.url.split("?ex=")[0]; attachment.proxy_url = attachment.proxy_url?.split("?ex=")[0]; await attachment.save(); - this.log("verbose", `[Server] Fixed attachment ${attachment.id}`); + this.log("verbose", `[CDN] Fixed attachment ${attachment.id}`); } } }