mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-10 00:08:22 +03:00
Unknown race condition fix
This commit is contained in:
@@ -27,8 +27,8 @@ export async function CreateFakeAuthCookie(mockApi: supertest.SuperTest<supertes
|
||||
// my local dev env hates this part because of pnpm
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
export function InsertFakeTokenWithAllPerms(token: string): () => any {
|
||||
return () => {
|
||||
db["api-tokens"].insert({
|
||||
return async () => {
|
||||
await db["api-tokens"].insert({
|
||||
userID: 1,
|
||||
identifier: "Mock API Token",
|
||||
permissions: AllPermissions,
|
||||
|
||||
Reference in New Issue
Block a user