Skip to content

Commit

Permalink
fix(assignments-service): Incorrect token generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Clashsoft committed Oct 9, 2024
1 parent eb68406 commit 5ee5737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/apps/assignments/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {interval, map, mapTo, merge, Observable} from 'rxjs';
export function generateToken(): string {
const bytes = randomBytes(8);
const hex = bytes.toString('hex');
return new Array(4).fill(0).map((_, index) => hex.substring(index * 4, 4)).join('-');
return new Array(4).fill(0).map((_, index) => hex.substring(index * 4, index * 4 + 4)).join('-');
}

export function eventStream<T>(source: Observable<WsResponse<T>>, name: string): Observable<MessageEvent> {
Expand Down

0 comments on commit 5ee5737

Please sign in to comment.