fix: non-expiring api key disallowing name updates

This commit is contained in:
tglide
2023-04-14 18:21:20 +01:00
parent 68653540a7
commit e0bfc2da8e
@@ -10,6 +10,8 @@ export const load: PageLoad = async ({ params, depends }) => {
const key = await sdk.forConsole.projects.getKey(params.project, params.key);
if (key.expire) {
key.expire = new Date(key.expire).toISOString().slice(0, 23);
} else {
key.expire = undefined;
}
return {