We don't need this block anymore

This commit is contained in:
MotorTruck1221 2024-10-17 03:08:03 -06:00
parent 4887562cc7
commit 187859b1c9
No known key found for this signature in database
GPG key ID: 08F417E2B8B61EA4

View file

@ -139,9 +139,7 @@ function marketplaceAPI(app: FastifyInstance) {
upload: Boolean, upload: Boolean,
data: any data: any
): Promise<VerifyStatus> { ): Promise<VerifyStatus> {
if (parsedDoc.marketplace.enabled === false) { if (request.headers.psk !== parsedDoc.marketplace.psk) {
return { status: 500, error: new Error("Marketplace Is disabled!") };
} else if (request.headers.psk !== parsedDoc.marketplace.psk) {
return { status: 403, error: new Error("PSK isn't correct!") }; return { status: 403, error: new Error("PSK isn't correct!") };
} else if (upload && !request.headers.packagename) { } else if (upload && !request.headers.packagename) {
return { status: 500, error: new Error("No packagename defined!") }; return { status: 500, error: new Error("No packagename defined!") };