Last active
August 9, 2023 23:54
-
-
Save EduardoRFS/fc45d13f542c42ff3a9bd46ef2d7a106 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// hi | |
func (wr WorkspaceRepository) CreateWorkspace(workspace *models.Workspace) error { | |
result := wr.db.Table("workspaceszz"). | |
Create(workspace). | |
Where("foo"). | |
Where("foo2"); | |
return errors.Wrap( | |
repository_utils.HandleDatabaseError(result), | |
StrWorkspaceRepositoryCreateWorkspaceErr | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment