mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-15 10:25:50 +02:00
wip #6441
This commit is contained in:
@@ -38,7 +38,7 @@ export default define(meta, async () => {
|
||||
chars: '2-9A-HJ-NP-Z', // [0-9A-Z] w/o [01IO] (32 patterns)
|
||||
});
|
||||
|
||||
await RegistrationTickets.save({
|
||||
await RegistrationTickets.insert({
|
||||
id: genId(),
|
||||
createdAt: new Date(),
|
||||
code,
|
||||
|
||||
@@ -53,7 +53,7 @@ export default define(meta, async (ps, user) => {
|
||||
throw new ApiError(meta.errors.alreadyPromoted);
|
||||
}
|
||||
|
||||
await PromoNotes.save({
|
||||
await PromoNotes.insert({
|
||||
noteId: note.id,
|
||||
createdAt: new Date(),
|
||||
expiresAt: new Date(ps.expiresAt),
|
||||
|
||||
Reference in New Issue
Block a user