Skip to content

ASQ can receive and process message to delete map request#54

Merged
rudokemper merged 1 commit into
mainfrom
delete-map-request
May 15, 2024
Merged

ASQ can receive and process message to delete map request#54
rudokemper merged 1 commit into
mainfrom
delete-map-request

Conversation

@rudokemper
Copy link
Copy Markdown
Member

Goal

Work towards ConservationMetrics/map-packer#10. mapgl-tile-renderer can now distinguish between type: new_request and type: delete_request, and delete an offline map package from the db and file storage in the latter case.

What I'm doing here

  • Added a function handleDeleteRequest to delete the database row associated with a requestId, and delete the file as defined by outputFilename and outputPath.
  • The existing logic to trigger the rendering of a new offline map has been moved into its own function, handleNewMaprequest.
  • Depending on the message type, one or the other is called.

@rudokemper rudokemper merged commit f3232b6 into main May 15, 2024
@rudokemper rudokemper deleted the delete-map-request branch May 15, 2024 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant