Diff
Logged in as anonymous

Differences From Artifact [9eecbf4b17]:

To Artifact [adaf777be6]:


232
233
234
235
236
237
238

239
240
241
242
243
244
245
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246







+







	where I: Into<i64> {
		sqlx::query("update rsstg_source set last_scrape = now() where source_id = $1;")
			.bind(id.into())
			.execute(&mut *self.0).await.stack()?;
		Ok(())
	}

	#[allow(clippy::too_many_arguments)] // XXX at least for now…
	pub async fn update <I> (&mut self, update: Option<i32>, channel: &str, channel_id: i64, url: &str, iv_hash: Option<&str>, url_re: Option<&str>, owner: I) -> Result<&str>
	where I: Into<i64> {
		match match update {
				Some(id) => {
					sqlx::query("update rsstg_source set channel_id = $2, url = $3, iv_hash = $4, owner = $5, channel = $6, url_re = $7 where source_id = $1")
						.bind(id)
				},