fix: check failed
Signed-off-by: Florian BOUILLON <f.bouillon@aptatio.com>
This commit is contained in:
11
src/env.d.ts
vendored
11
src/env.d.ts
vendored
@ -1,5 +1,6 @@
|
||||
/// <reference path="../.astro/types.d.ts" />
|
||||
/// <reference types="astro/client" />
|
||||
/// <reference path="./libs/ResponseBuilder" />
|
||||
|
||||
interface ImportMetaEnv {
|
||||
PRUSASLICER_PATH?: string
|
||||
@ -20,14 +21,6 @@ declare namespace App {
|
||||
* authentification key is the api key or the session token
|
||||
*/
|
||||
authKey?: string
|
||||
responseBuilder: {
|
||||
body(body: string | Buffer | object | null | undefined): this
|
||||
headers(headers: Record<string, string>): this
|
||||
addHeader(key: string, value: string): this
|
||||
addHeaders(headers: Record<string, string>): this
|
||||
removeHeader(key: string): this
|
||||
status(status: number): this
|
||||
build(): Response
|
||||
} // ./libs/ResponseBuilder object
|
||||
responseBuilder: ResponseBuilder
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,3 @@
|
||||
import { MongoClient } from 'mongodb'
|
||||
import mongoose from 'mongoose'
|
||||
|
||||
export default class Client {
|
||||
|
@ -47,7 +47,6 @@ export default class SessionDao {
|
||||
})
|
||||
}
|
||||
|
||||
public removeSession(res: ResponseInit & { readonly headers: Headers; }) {
|
||||
|
||||
public removeSession(_res: ResponseInit & { readonly headers: Headers; }) {
|
||||
}
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ if (!connected && Astro.request.method === 'POST') {
|
||||
} = load<{connected: boolean}>()
|
||||
|
||||
if (connected) {
|
||||
window.location = '/'
|
||||
window.location.pathname = '/'
|
||||
}
|
||||
|
||||
</script>
|
||||
|
@ -1,4 +0,0 @@
|
||||
---
|
||||
return Astro.redirect('/account/login?logout')
|
||||
|
||||
---
|
Reference in New Issue
Block a user