Compare commits
1 Commits
e25c715fb7
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 418a553429 |
@@ -10,7 +10,7 @@ export interface FileRow {
|
||||
created_at: string;
|
||||
}
|
||||
|
||||
export interface CreateFileParams {
|
||||
interface CreateFileParams {
|
||||
id: string;
|
||||
userId: number;
|
||||
originalName: string;
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import type Database from 'better-sqlite3';
|
||||
|
||||
export interface UserRow {
|
||||
interface UserRow {
|
||||
id: number;
|
||||
username: string;
|
||||
password_hash: string;
|
||||
created_at: string;
|
||||
}
|
||||
|
||||
export interface CreateUserParams {
|
||||
interface CreateUserParams {
|
||||
username: string;
|
||||
passwordHash: string;
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ export async function loginAs(app: FastifyInstance, username: string, password:
|
||||
return cookie.split(';')[0].replace('token=', '');
|
||||
}
|
||||
|
||||
export interface MultipartFile {
|
||||
interface MultipartFile {
|
||||
filename: string;
|
||||
contentType: string;
|
||||
data: Buffer;
|
||||
|
||||
Reference in New Issue
Block a user