BREAKING CHANGE: V2 of thr SDK #12
@ -70,7 +70,7 @@ func CreateUserNodeWithSourceRelation(ctx context.Context, db *gorm.DB, anthrove
|
||||
AccountID: userID,
|
||||
}
|
||||
|
||||
if err := db.WithContext(ctx).Create(&userSource).Error; err != nil {
|
||||
if err := db.WithContext(ctx).FirstOrCreate(&userSource).Error; err != nil {
|
||||
log.WithFields(log.Fields{
|
||||
"anthrove_user_id": anthroveUserID,
|
||||
"source_domain": sourceDomain,
|
||||
|
Reference in New Issue
Block a user