mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-05-06 20:29:22 -05:00
[server] check that resource exists before adding bookmark
This commit is contained in:
@@ -78,7 +78,7 @@ func setupBookmarksAddCommand() *cobra.Command {
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
if err := user.CreateManager(context.Background()).AddBookmark(common.User(cmd), r.ID); err != nil {
|
||||
if err := user.CreateManager(context.Background()).AddBookmark(common.User(cmd), r); err != nil {
|
||||
fmt.Println("unable to add bookmark: " + err.Error())
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user