0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

refactor: fix code and release workflow

This commit is contained in:
Gao Sun 2023-03-14 23:14:22 +08:00
parent 8ab8622131
commit b8906bd49b
No known key found for this signature in database
GPG key ID: 13EBE123E4773688
2 changed files with 2 additions and 1 deletions

View file

@ -141,6 +141,7 @@ jobs:
- uses: actions/checkout@v3
- name: Setup Node and pnpm
if: ${{ (inputs.target || 'dev') == 'dev' }}
uses: silverhand-io/actions-node-pnpm-run-steps@v2
- name: Deploy database alteration

View file

@ -7,7 +7,7 @@ import Tenant from './Tenant.js';
export class TenantPool {
protected cache = new LRUCache<string, Promise<Tenant>>({
max: EnvSet.values.tenantPoolSize,
dispose: (tenant) => {
dispose: async (entry) => {
const tenant = await entry;
void tenant.dispose();
},