mirror of
https://github.com/NebulaServices/Nebula.git
synced 2025-05-13 03:50:02 -04:00
We don't need this block anymore
This commit is contained in:
parent
4887562cc7
commit
187859b1c9
1 changed files with 1 additions and 3 deletions
|
@ -139,9 +139,7 @@ function marketplaceAPI(app: FastifyInstance) {
|
|||
upload: Boolean,
|
||||
data: any
|
||||
): Promise<VerifyStatus> {
|
||||
if (parsedDoc.marketplace.enabled === false) {
|
||||
return { status: 500, error: new Error("Marketplace Is disabled!") };
|
||||
} else if (request.headers.psk !== parsedDoc.marketplace.psk) {
|
||||
if (request.headers.psk !== parsedDoc.marketplace.psk) {
|
||||
return { status: 403, error: new Error("PSK isn't correct!") };
|
||||
} else if (upload && !request.headers.packagename) {
|
||||
return { status: 500, error: new Error("No packagename defined!") };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue