updated dependencies and golangci-lint to v2

This commit is contained in:
Gani Georgiev
2025-04-12 20:04:04 +03:00
parent d9af1475ef
commit 4cc797071b
18 changed files with 93 additions and 109 deletions

View File

@@ -220,7 +220,7 @@ func (app *BaseApp) IsCollectionNameUnique(name string, excludeIds ...string) bo
// cascade and file delete actions.
func (app *BaseApp) TruncateCollection(collection *Collection) error {
if collection.IsView() {
return errors.New("view collections cannot be truncated since they don't store their own records.")
return errors.New("view collections cannot be truncated since they don't store their own records")
}
return app.RunInTransaction(func(txApp App) error {