Skip to content

Commit

Permalink
small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
achou11 committed Aug 24, 2023
1 parent 06540ca commit b520dbc
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/mapeo-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,15 +207,14 @@ export class MapeoManager {
throw new Error(`Project with ID ${projectId} already exists`)
}

const projectKeys = {
projectKey: Buffer.from(projectId, 'hex'),
this.#saveProjectKeys(projectId, {
projectKey,
encryptionKeys,
}

this.#saveProjectKeys(projectId, projectKeys)
})

const project = new MapeoProject({
...projectKeys,
projectKey,
encryptionKeys,
storagePath: this.#storagePath,
keyManager: this.#keyManager,
sharedDb: this.#db,
Expand Down

0 comments on commit b520dbc

Please sign in to comment.