Feat: finish object storage
This commit is contained in:
@@ -184,3 +184,13 @@ func (self *BunDatabase) UpdateAliases(
|
||||
return nil
|
||||
})
|
||||
}
|
||||
|
||||
func (self *BunDatabase) InsertImage(
|
||||
ctx context.Context,
|
||||
image *models.Image,
|
||||
) error {
|
||||
_, err := self.db.NewInsert().
|
||||
Model(image).
|
||||
Exec(ctx)
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user