mirror of
https://github.com/tiennm99/store-scraper-bot-java.git
synced 2026-05-26 14:00:17 +00:00
Update CouchbaseUtil.java
This commit is contained in:
@@ -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