Load users from s3
This commit is contained in:
@@ -31,7 +31,8 @@ export class UsersService {
|
||||
const buffer = await this.minioService.getBuffer(this.bucket, 'users.json');
|
||||
this.users = JSON.parse(buffer.toString());
|
||||
if (this.users === undefined) {
|
||||
this.logger.error('Users undefined');
|
||||
this.logger.error('Users undefined, failing to empty set');
|
||||
this.users = [];
|
||||
}
|
||||
if (this.users.length === 0) {
|
||||
this.logger.error('Users length is 0');
|
||||
|
Reference in New Issue
Block a user