Skip to content

Commit

Permalink
fix(server): fix logic error in get-app api (#720)
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow authored Feb 3, 2023
1 parent cd9ead0 commit 1c4e85b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/src/application/application.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1c4e85b

Please sign in to comment.