Skip to content

Commit 4418fcb

Browse files
serratedserenadegriffithtp
authored andcommitted
fix: changed how key is generated for datastore.save to prevent duplicate entries. Key is now the name of the package (#8)
modified how key is generated for datastore.save
1 parent 56f4e07 commit 4418fcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/verdaccio-google-cloud/src/data-storage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class GoogleCloudDatabase implements IPluginStorage {
7979

8080
add(name: string, cb: Callback): void {
8181
const datastore = this.data.datastore;
82-
const key = datastore.key(this.kind);
82+
const key = datastore.key([this.kind, name]);
8383
const data = {
8484
name: name
8585
};

0 commit comments

Comments
 (0)