Skip to content

Commit

Permalink
fix: error check
Browse files Browse the repository at this point in the history
  • Loading branch information
OXeu committed Jun 25, 2024
1 parent 36de70e commit 51137a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/utils/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class CacheImpl {
this.db = getDB();
this.env = getEnv();
this.cache = new Map<string, any>();
const slash = this.env.S3_ENDPOINT.endsWith('/') ? '' : '/';
const slash = this.env.S3_ACCESS_HOST.endsWith('/') ? '' : '/';
this.cacheUrl = this.env.S3_ACCESS_HOST + slash + path.join(this.env.S3_CACHE_FOLDER || 'cache', `${type}.json`);
}

Expand Down

0 comments on commit 51137a4

Please sign in to comment.