@@ -2,29 +2,29 @@ import { Identity } from "@semaphore-protocol/identity";
2
2
import { expect } from "chai" ;
3
3
import "mocha" ;
4
4
import { step } from "mocha-steps" ;
5
- import { Pool } from "pg " ;
5
+ import { Pool } from "postgres-pool " ;
6
6
import { ZuzaluPretixTicket , ZuzaluUserRole } from "../src/database/models" ;
7
7
import { getDB } from "../src/database/postgresPool" ;
8
8
import {
9
9
fetchAllCommitments ,
10
10
fetchCommitment ,
11
11
fetchCommitmentByPublicCommitment ,
12
- removeCommitment ,
12
+ removeCommitment
13
13
} from "../src/database/queries/commitments" ;
14
14
import {
15
15
fetchEncryptedStorage ,
16
- insertEncryptedStorage ,
16
+ insertEncryptedStorage
17
17
} from "../src/database/queries/e2ee" ;
18
18
import {
19
19
fetchEmailToken ,
20
- insertEmailToken ,
20
+ insertEmailToken
21
21
} from "../src/database/queries/emailToken" ;
22
22
import { insertCommitment } from "../src/database/queries/saveCommitment" ;
23
23
import { deleteZuzaluUser } from "../src/database/queries/zuzalu_pretix_tickets/deleteZuzaluUser" ;
24
24
import {
25
25
fetchAllLoggedInZuzaluUsers ,
26
26
fetchLoggedInZuzaluUser ,
27
- fetchZuzaluUser ,
27
+ fetchZuzaluUser
28
28
} from "../src/database/queries/zuzalu_pretix_tickets/fetchZuzaluUser" ;
29
29
import { insertZuzaluPretixTicket } from "../src/database/queries/zuzalu_pretix_tickets/insertZuzaluPretixTicket" ;
30
30
import { updateZuzaluPretixTicket } from "../src/database/queries/zuzalu_pretix_tickets/updateZuzaluPretixTicket" ;
@@ -71,7 +71,7 @@ describe("database reads and writes", function () {
71
71
name : "bob shmob" ,
72
72
order_id : "ASD12" ,
73
73
role : ZuzaluUserRole . Organizer ,
74
- visitor_date_ranges : null ,
74
+ visitor_date_ranges : null
75
75
} ;
76
76
otherRole = ZuzaluUserRole . Visitor ;
77
77
@@ -101,7 +101,7 @@ describe("database reads and writes", function () {
101
101
const newCommitment = newIdentity . commitment . toString ( ) ;
102
102
const newUuid = await insertCommitment ( db , {
103
103
email : testTicket . email ,
104
- commitment : newCommitment ,
104
+ commitment : newCommitment
105
105
} ) ;
106
106
107
107
const loggedinUser = await fetchLoggedInZuzaluUser ( db , { uuid : newUuid } ) ;
@@ -154,8 +154,8 @@ describe("database reads and writes", function () {
154
154
email : testTicket . email ,
155
155
role : otherRole ,
156
156
visitor_date_ranges : [
157
- { date_from : new Date ( ) . toString ( ) , date_to : new Date ( ) . toString ( ) } ,
158
- ] ,
157
+ { date_from : new Date ( ) . toString ( ) , date_to : new Date ( ) . toString ( ) }
158
+ ]
159
159
} ;
160
160
161
161
await updateZuzaluPretixTicket ( db , update ) ;
@@ -220,7 +220,7 @@ describe("database reads and writes", function () {
220
220
const commitment = new Identity ( ) . commitment . toString ( ) ;
221
221
const uuid = await insertCommitment ( db , {
222
222
commitment,
223
- email,
223
+ email
224
224
} ) ;
225
225
if ( ! uuid ) {
226
226
throw new Error ( "expected to be able to insert a commitment" ) ;
0 commit comments