From 1c4e85b9bd18124c89703f34caa159ff3e88cd7f Mon Sep 17 00:00:00 2001 From: maslow Date: Fri, 3 Feb 2023 16:24:19 +0800 Subject: [PATCH] fix(server): fix logic error in get-app api (#720) --- server/src/application/application.controller.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/application/application.controller.ts b/server/src/application/application.controller.ts index ef60714017..bc8c5af840 100644 --- a/server/src/application/application.controller.ts +++ b/server/src/application/application.controller.ts @@ -94,9 +94,10 @@ export class ApplicationController { // Security Warning: Do not response this region object to client since it contains sensitive information const region = await this.regionService.findOne(data.regionName) + // TODO: remove these storage related code to standalone api let storage = {} const storageUser = await this.storageService.findOne(appid) - if (!storageUser) { + if (storageUser) { const sts = await this.storageService.getOssSTS( region, appid,