diff --git a/src/server/index.ts b/src/server/index.ts index 52a58461..594a4d6d 100644 --- a/src/server/index.ts +++ b/src/server/index.ts @@ -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;