MCPcopy Create free account
hub / github.com/Botloader/botloader / delete_plugin_image

Method delete_plugin_image

components/stores/src/config.rs:898–921  ·  view source on GitHub ↗
(
        &self,
        plugin_id: u64,
        image_id: Uuid,
    )

Source from the content-addressed store, hash-verified

896 }
897
898 pub async fn delete_plugin_image(
899 &self,
900 plugin_id: u64,
901 image_id: Uuid,
902 ) -> ConfigStoreResult<()> {
903 sqlx::query!(
904 "DELETE FROM plugin_images WHERE plugin_id = $1 AND image_id = $2",
905 plugin_id as i64,
906 image_id,
907 )
908 .execute(&self.pool)
909 .await?;
910
911 sqlx::query!(
912 "UPDATE images SET deleted_at = COALESCE(images.deleted_at, now()) WHERE plugin_id = \
913 $1 and id = $2",
914 plugin_id as i64,
915 image_id,
916 )
917 .execute(&self.pool)
918 .await?;
919
920 Ok(())
921 }
922
923 pub async fn update_script_plugin_dev_version(
924 &self,

Callers 2

upsert_plugin_imageMethod · 0.80
delete_plugin_imageFunction · 0.80

Calls 1

executeMethod · 0.80

Tested by

no test coverage detected