mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 00:12:11 +08:00
fix typo
This commit is contained in:
@@ -6,7 +6,7 @@ type Database struct {
|
||||
*xorm.EngineGroup
|
||||
}
|
||||
|
||||
func (db *Database) DoTranscation(fn func(sess *xorm.Session) error) (err error) {
|
||||
func (db *Database) DoTransaction(fn func(sess *xorm.Session) error) (err error) {
|
||||
sess := db.NewSession()
|
||||
defer sess.Close()
|
||||
|
||||
|
||||
@@ -18,8 +18,8 @@ func (s *DataStore) Query(key int64) *xorm.Session {
|
||||
return s.Choose(key).NewSession()
|
||||
}
|
||||
|
||||
func (s *DataStore) DoTranscation(key int64, fn func(sess *xorm.Session) error) (err error) {
|
||||
return s.Choose(key).DoTranscation(fn)
|
||||
func (s *DataStore) DoTransaction(key int64, fn func(sess *xorm.Session) error) (err error) {
|
||||
return s.Choose(key).DoTransaction(fn)
|
||||
}
|
||||
|
||||
func (s *DataStore) SyncStructs(beans... interface{}) error {
|
||||
|
||||
Reference in New Issue
Block a user