mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor(database): 🚚 Rename Application to Client everywhere
This commit is contained in:
parent
c55be8a862
commit
87da7796be
25 changed files with 2549 additions and 90 deletions
|
|
@ -2,7 +2,7 @@ import { mock } from "bun:test";
|
|||
import { Client as VersiaClient } from "@versia/client";
|
||||
import { config } from "@versia-server/config";
|
||||
import {
|
||||
Application,
|
||||
Client,
|
||||
db,
|
||||
Note,
|
||||
setupDatabase,
|
||||
|
|
@ -50,7 +50,7 @@ export const generateClient = async (
|
|||
dbToken: Token;
|
||||
}
|
||||
> => {
|
||||
const application = await Application.insert({
|
||||
const application = await Client.insert({
|
||||
id: randomUUIDv7(),
|
||||
name: "Versia",
|
||||
redirectUris: [],
|
||||
|
|
@ -111,7 +111,7 @@ export const getTestUsers = async (
|
|||
const users: User[] = [];
|
||||
const passwords: string[] = [];
|
||||
|
||||
const application = await Application.insert({
|
||||
const application = await Client.insert({
|
||||
id: randomUUIDv7(),
|
||||
name: "Versia",
|
||||
redirectUris: [],
|
||||
|
|
@ -182,7 +182,7 @@ export const getTestStatuses = async (
|
|||
sensitive: false,
|
||||
updatedAt: new Date().toISOString(),
|
||||
visibility: "public",
|
||||
applicationId: null,
|
||||
clientId: null,
|
||||
...partial,
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue