mirror of
https://github.com/LemmyNet/lemmy.git
synced 2025-02-18 03:45:23 +00:00
Fixing federation tests.
This commit is contained in:
parent
10079f8295
commit
622ce6c976
3 changed files with 10 additions and 10 deletions
|
@ -27,7 +27,7 @@
|
|||
"eslint": "^9.8.0",
|
||||
"eslint-plugin-prettier": "^5.1.3",
|
||||
"jest": "^29.5.0",
|
||||
"lemmy-js-client": "0.20.0-alpha.11",
|
||||
"lemmy-js-client": "0.20.0-alpha.12",
|
||||
"prettier": "^3.2.5",
|
||||
"ts-jest": "^29.1.0",
|
||||
"typescript": "^5.5.4",
|
||||
|
|
|
@ -30,8 +30,8 @@ importers:
|
|||
specifier: ^29.5.0
|
||||
version: 29.7.0(@types/node@22.3.0)
|
||||
lemmy-js-client:
|
||||
specifier: 0.20.0-alpha.11
|
||||
version: 0.20.0-alpha.11
|
||||
specifier: 0.20.0-alpha.12
|
||||
version: 0.20.0-alpha.12
|
||||
prettier:
|
||||
specifier: ^3.2.5
|
||||
version: 3.3.3
|
||||
|
@ -1175,8 +1175,8 @@ packages:
|
|||
resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==}
|
||||
engines: {node: '>=6'}
|
||||
|
||||
lemmy-js-client@0.20.0-alpha.11:
|
||||
resolution: {integrity: sha512-iRSG4xHMjPDIreQqVIoJ5JrMY71uk07G0Zbgyf068xKbib22J3+i1x/XgCTs6tiHlqTnw1Ig/KRq7p7qJoA4uw==}
|
||||
lemmy-js-client@0.20.0-alpha.12:
|
||||
resolution: {integrity: sha512-+nknIpFAT25TnhObvPPCI0JhDxmTSfg3jbNm7f4RnwidRskjS8SraNFD4bXFfHf14lu61ZEiVe58+UhhRe2UdA==}
|
||||
|
||||
leven@3.1.0:
|
||||
resolution: {integrity: sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==}
|
||||
|
@ -3107,7 +3107,7 @@ snapshots:
|
|||
|
||||
kleur@3.0.3: {}
|
||||
|
||||
lemmy-js-client@0.20.0-alpha.11: {}
|
||||
lemmy-js-client@0.20.0-alpha.12: {}
|
||||
|
||||
leven@3.1.0: {}
|
||||
|
||||
|
|
|
@ -299,7 +299,7 @@ impl PostRead {
|
|||
pool: &mut DbPool<'_>,
|
||||
post_id: PostId,
|
||||
person_id: PersonId,
|
||||
) -> Result<Self, Error> {
|
||||
) -> Result<usize, Error> {
|
||||
let conn = &mut get_conn(pool).await?;
|
||||
|
||||
let form = PostReadForm { post_id, person_id };
|
||||
|
@ -307,7 +307,7 @@ impl PostRead {
|
|||
insert_into(post_read::table)
|
||||
.values(form)
|
||||
.on_conflict_do_nothing()
|
||||
.get_result::<Self>(conn)
|
||||
.execute(conn)
|
||||
.await
|
||||
}
|
||||
|
||||
|
@ -331,14 +331,14 @@ impl PostHide {
|
|||
pool: &mut DbPool<'_>,
|
||||
post_id: PostId,
|
||||
person_id: PersonId,
|
||||
) -> Result<Self, Error> {
|
||||
) -> Result<usize, Error> {
|
||||
let conn = &mut get_conn(pool).await?;
|
||||
|
||||
let form = PostHideForm { post_id, person_id };
|
||||
insert_into(post_hide::table)
|
||||
.values(form)
|
||||
.on_conflict_do_nothing()
|
||||
.get_result::<Self>(conn)
|
||||
.execute(conn)
|
||||
.await
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue