catalogUrlHasDuplicate method
- MokuroCatalog catalog
Check if a catalog with a certain name with a different order already exists.
Implementation
bool catalogUrlHasDuplicate(MokuroCatalog catalog) {
return _database.mokuroCatalogs
.where()
.urlEqualTo(catalog.url)
.filter()
.not()
.orderEqualTo(catalog.order)
.findFirstSync() !=
null;
}