mirror of
https://github.com/tiennm99/store-scraper-bot.git
synced 2026-10-14 20:17:41 +00:00
Update CouchbaseUtil.java
This commit is contained in:
1 parent
e3f2e0ad6e
commit
7c8af88b9a
1 file changed
+1
-2
@@ -66,8 +66,7 @@ public class CouchbaseUtil {
|
||||
scopeSpec.collections().stream().anyMatch(c -> c.name().equals(collectionName));
|
||||
|
||||
if (!collectionExists) {
|
||||
var spec = CollectionSpec.create(collectionName, scopeName);
|
||||
collectionManager.createCollection(spec);
|
||||
collectionManager.createCollection(scopeName, collectionName);
|
||||
log.info("Collection created: {} in {}", collectionName, scopeName);
|
||||
} else {
|
||||
log.info("Collection existed: {} in {}", collectionName, scopeName);
|
||||
|
||||
Reference in new issue
Block a user