Load users from s3

This commit is contained in:
2023-11-20 16:59:26 -07:00
parent 4823f7f109
commit d862ed7539

View File

@@ -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');