* Delete session usage file (when workspace is deleted).
(workspaceId: string)
| 513 | * Delete session usage file (when workspace is deleted). |
| 514 | */ |
| 515 | async deleteSessionUsage(workspaceId: string): Promise<void> { |
| 516 | return this.fileLocks.withLock(workspaceId, async () => { |
| 517 | try { |
| 518 | await fs.unlink(this.getFilePath(workspaceId)); |
| 519 | } catch (error) { |
| 520 | if (!(error && typeof error === "object" && "code" in error && error.code === "ENOENT")) { |
| 521 | throw error; |
| 522 | } |
| 523 | } |
| 524 | }); |
| 525 | } |
| 526 | } |
nothing calls this directly
no test coverage detected