File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,7 @@ async function ensureDeletedColumnExists() {
134
134
}
135
135
136
136
export async function deleteUser ( userId : string ) {
137
+ await ensureUserTableExists ( ) ;
137
138
await ensureDeletedColumnExists ( ) ;
138
139
139
140
const updateResult = await query (
@@ -163,6 +164,7 @@ export async function getUsers({
163
164
search = null ,
164
165
} : GetUsersOptions = { } ) {
165
166
await ensureUserTableExists ( ) ;
167
+ await ensureDeletedColumnExists ( ) ;
166
168
167
169
const offset = ( page - 1 ) * pageSize ;
168
170
@@ -219,6 +221,9 @@ export async function getUsers({
219
221
}
220
222
221
223
export async function getAllUsers ( includeDeleted : boolean = false ) {
224
+ await ensureUserTableExists ( ) ;
225
+ await ensureDeletedColumnExists ( ) ;
226
+
222
227
const whereClause = includeDeleted
223
228
? ""
224
229
: "WHERE (deleted = FALSE OR deleted IS NULL)" ;
You can’t perform that action at this time.
0 commit comments