|
|
|
@ -303,7 +303,6 @@ func (s *Server) registerMemoRoutes(g *echo.Group) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
currentTs := time.Now().Unix()
|
|
|
|
|
|
|
|
|
|
memoResourceUpsert := &api.MemoResourceUpsert{
|
|
|
|
|
MemoID: memoID,
|
|
|
|
|
UpdatedTs: ¤tTs,
|
|
|
|
@ -312,6 +311,10 @@ func (s *Server) registerMemoRoutes(g *echo.Group) {
|
|
|
|
|
return echo.NewHTTPError(http.StatusBadRequest, "Malformatted post memo resource request").SetInternal(err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if _, err := s.Store.UpsertMemoResource(ctx, memoResourceUpsert); err != nil {
|
|
|
|
|
return echo.NewHTTPError(http.StatusInternalServerError, "Failed to upsert memo resource").SetInternal(err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
resourceFind := &api.ResourceFind{
|
|
|
|
|
ID: &memoResourceUpsert.ResourceID,
|
|
|
|
|
}
|
|
|
|
|