mirror of
https://github.com/paralus/paralus.git
synced 2026-08-24 15:47:19 +00:00
Convert from dao interface to funcs
This was done inorder to support transactions which will be done in the next PR. This is the first step towards that.
This commit is contained in:
+1
-1
@@ -115,7 +115,7 @@ func (s *bootstrapServer) DeleteBootstrapAgent(ctx context.Context, in *sentry.B
|
||||
return
|
||||
}
|
||||
|
||||
err = s.bs.DeleteBoostrapAgent(ctx, templateRef, query.WithMeta(in.Metadata))
|
||||
err = s.bs.DeleteBootstrapAgent(ctx, templateRef, query.WithMeta(in.Metadata))
|
||||
if err == sql.ErrNoRows {
|
||||
err = status.Error(codes.NotFound, err.Error())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user