mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 03:47:40 -07:00
Make issue process of registration tickets better (#5545)
* Make issue process of registration tickets better * Fix illegal indent * Bye rangestr * Update invite.ts * Fix bug * Update invite.ts
This commit is contained in:
parent
0191e2addd
commit
5ea1508d22
1 changed files with 7 additions and 4 deletions
|
@ -16,16 +16,19 @@ export const meta = {
|
|||
params: {}
|
||||
};
|
||||
|
||||
export default define(meta, async (ps) => {
|
||||
const code = rndstr({ length: 5, chars: '0-9' });
|
||||
export default define(meta, async () => {
|
||||
const code = rndstr({
|
||||
length: 8,
|
||||
chars: '2-9A-HJ-NP-Z', // [0-9A-Z] w/o [01IO] (32 patterns)
|
||||
});
|
||||
|
||||
await RegistrationTickets.save({
|
||||
id: genId(),
|
||||
createdAt: new Date(),
|
||||
code: code
|
||||
code,
|
||||
});
|
||||
|
||||
return {
|
||||
code: code
|
||||
code,
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue