Skip to content

Commit

Permalink
rename getProjectInstance
Browse files Browse the repository at this point in the history
  • Loading branch information
gmaclennan committed Oct 27, 2023
1 parent 0cd25da commit 395345d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mapeo-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export class MapeoManager {
})

// 4. Create MapeoProject instance
const project = this.#getProjectInstance({
const project = this.#createProjectInstance({
encryptionKeys,
projectKey: projectKeypair.publicKey,
projectSecretKey: projectKeypair.secretKey,
Expand Down Expand Up @@ -288,7 +288,7 @@ export class MapeoManager {
projectId
)

const project = this.#getProjectInstance(projectKeys)
const project = this.#createProjectInstance(projectKeys)

// 3. Keep track of project instance as we know it's a properly existing project
this.#activeProjects.set(projectPublicId, project)
Expand All @@ -297,7 +297,7 @@ export class MapeoManager {
}

/** @param {ProjectKeys} projectKeys */
#getProjectInstance(projectKeys) {
#createProjectInstance(projectKeys) {
const projectId = keyToId(projectKeys.projectKey)
return new MapeoProject({
...this.#projectStorage(projectId),
Expand Down

0 comments on commit 395345d

Please sign in to comment.