fix: store refresh-at as string type, not date type, for sqlx autotyping
This commit is contained in:
parent
c7130bbcd4
commit
4a0ed99329
2 changed files with 31 additions and 10 deletions
|
|
@ -601,16 +601,18 @@ mod put {
|
|||
.execute(pool)
|
||||
.await?;
|
||||
|
||||
QueryBuilder::new("insert into groups (contact_id, name, slug) ")
|
||||
.push_values(&new_groups, |mut b, name| {
|
||||
b.push_bind(contact_id)
|
||||
.push_bind(name)
|
||||
.push_bind(slugify(name));
|
||||
})
|
||||
.build()
|
||||
.persistent(false)
|
||||
.execute(pool)
|
||||
.await?;
|
||||
if new_groups.len() > 0 {
|
||||
QueryBuilder::new("insert into groups (contact_id, name, slug) ")
|
||||
.push_values(&new_groups, |mut b, name| {
|
||||
b.push_bind(contact_id)
|
||||
.push_bind(name)
|
||||
.push_bind(slugify(name));
|
||||
})
|
||||
.build()
|
||||
.persistent(false)
|
||||
.execute(pool)
|
||||
.await?;
|
||||
}
|
||||
|
||||
{
|
||||
let mut switchboard = sw_lock.write().unwrap();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue