mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
@@ -186,6 +186,7 @@ exports.verifyOTP = async (req, res) => {
|
||||
groupName: grp?.name ?? null,
|
||||
groupCode: grp?.group_code ?? null,
|
||||
accType: user.acc_type,
|
||||
groupId: membership?.group_id ?? null,
|
||||
}),
|
||||
createdAt: now,
|
||||
updatedAt: now,
|
||||
@@ -407,7 +408,7 @@ exports.googleCallback = async (req, res) => {
|
||||
UserNotification.bulkCreate([
|
||||
{
|
||||
user_id: user.user_id,
|
||||
...NOTIFICATION_REGISTRY.welcome.build({ groupName: null, groupCode: 'NOGRP', accType: 'user' }),
|
||||
...NOTIFICATION_REGISTRY.welcome.build({ groupName: null, groupCode: 'NOGRP', accType: 'user', groupId: noGrp?.group_id ?? null }),
|
||||
createdAt: _now,
|
||||
updatedAt: _now,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user