Add arangodb init

This commit is contained in:
Lakhan Samani
2021-12-17 09:25:29 +05:30
parent 155d2e65c2
commit 57dd69279e
10 changed files with 190 additions and 34 deletions

View File

@@ -26,7 +26,7 @@ func (r *Session) BeforeCreate(tx *gorm.DB) (err error) {
// SaveSession function to save user sessiosn
func (mgr *manager) SaveSession(session Session) error {
res := mgr.db.Clauses(
res := mgr.sqlDB.Clauses(
clause.OnConflict{
DoNothing: true,
}).Create(&session)