mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-09 07:47:27 +02:00
removed unnecessary helper method and updated index parser regex
This commit is contained in:
1 parent
29621303df
commit
1b45e23c81
32 files changed
+40
-49
No files matched your search
@@ -416,17 +416,6 @@ func (form *CollectionUpsert) checkIndexes(value any) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (form *CollectionUpsert) dryDao() *daos.Dao {
|
||||
if form.dao.ConcurrentDB() == form.dao.NonconcurrentDB() {
|
||||
// it is already in a transaction and therefore use the app concurrent db pool
|
||||
// to prevent "transaction has already been committed or rolled back" error
|
||||
return daos.New(form.app.Dao().ConcurrentDB())
|
||||
}
|
||||
|
||||
// otherwise use the form noncurrent dao db pool
|
||||
return daos.New(form.dao.NonconcurrentDB())
|
||||
}
|
||||
|
||||
func (form *CollectionUpsert) checkOptions(value any) error {
|
||||
v, _ := value.(types.JsonMap)
|
||||
|
||||
|
||||
Reference in new issue
Block a user