refactor: switch from go to bun

This commit is contained in:
Nicolas Meienberger
2025-08-31 17:32:00 +02:00
parent a0be690eb9
commit a16fc37b44
76 changed files with 4283 additions and 4173 deletions

View File

@@ -19,7 +19,7 @@ services:
- ./:/app/
- /home/nicolas/ironmount/tmp:/mounts:rshared
# - /home/nicolas/ironmount/tmp:/mounts:rshared
environment:
- GO_ENV=development
- VOLUME_ROOT=/home/nicolas/ironmount/tmp

View File

@@ -74,7 +74,7 @@ func (v *VolumeService) CreateVolume(body VolumeCreateRequest) (*db.Volume, int,
}
stringConfig := string(bytesConfig)
if err := volumeQueries.InsertVolume(name, volPathHost, stringConfig); err != nil {
if err := volumeQueries.InsertVolume(name, volPathHost, VolumeBackendTypeLocal, stringConfig); err != nil {
if strings.Contains(err.Error(), "UNIQUE") {
return nil, http.StatusConflict, fmt.Errorf("volume %s already exists", name)
}