Handle promise linting (#5488)
This commit is contained in:
@@ -60,7 +60,7 @@ export async function signIn(
|
||||
await user.updateSignedIn(ctx.request.ip);
|
||||
|
||||
// don't await event creation for a faster sign-in
|
||||
Event.create({
|
||||
void Event.create({
|
||||
name: "users.signin",
|
||||
actorId: user.id,
|
||||
userId: user.id,
|
||||
|
||||
@@ -25,9 +25,10 @@ export function opts(user?: User | null) {
|
||||
*
|
||||
* @returns i18n instance
|
||||
*/
|
||||
export function initI18n() {
|
||||
export async function initI18n() {
|
||||
const lng = unicodeCLDRtoBCP47(env.DEFAULT_LANGUAGE);
|
||||
i18n.use(backend).init({
|
||||
i18n.use(backend);
|
||||
await i18n.init({
|
||||
compatibilityJSON: "v3",
|
||||
backend: {
|
||||
loadPath: (language: string) =>
|
||||
|
||||
Reference in New Issue
Block a user