Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Commit

Permalink
fix: slug caching
Browse files Browse the repository at this point in the history
  • Loading branch information
froid1911 committed Jun 7, 2024
1 parent 1134dc6 commit 1465ef0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,11 @@ export class DocumentDriveServer extends BaseDocumentDriveServer {
});

await this.storage.createDrive(id, document);
const storageDrive = await this.getDrive(id)

if (drive.global.slug) {
await this.cache.deleteDocument("drives-slug", drive.global.slug)
}

await this._initializeDrive(id);

return document;
Expand Down

0 comments on commit 1465ef0

Please sign in to comment.