mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-13 09:48:27 +03:00
Fix api token collision
This commit is contained in:
@@ -71,17 +71,18 @@ t.test("GET /ir/usc/Keyboard", async (t) => {
|
||||
});
|
||||
|
||||
t.test("GET /ir/usc/Controller", async (t) => {
|
||||
await db["api-tokens"].insert({
|
||||
userID: 1,
|
||||
identifier: "USC Token",
|
||||
permissions: {
|
||||
submit_score: true,
|
||||
},
|
||||
token: "foo",
|
||||
fromAPIClient: null,
|
||||
});
|
||||
|
||||
t.beforeEach(ResetDBState);
|
||||
t.beforeEach(async () => {
|
||||
await db["api-tokens"].insert({
|
||||
userID: 1,
|
||||
identifier: "USC Token",
|
||||
permissions: {
|
||||
submit_score: true,
|
||||
},
|
||||
token: "foo",
|
||||
fromAPIClient: null,
|
||||
});
|
||||
});
|
||||
|
||||
TestAuth("/ir/usc/Controller");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user