chore: update to latest astro ink version

This commit is contained in:
Timothy DeHerrera
2024-07-06 14:41:28 -06:00
parent 97aa45c32e
commit e4620874f9
84 changed files with 13949 additions and 4620 deletions

View File

@@ -0,0 +1,16 @@
const client = new Map<string, number>();
export const getViewsBySlug = async (slug: string) => {
if (slug) {
const prevValue = client.get(slug);
let newValue = 1;
if (prevValue) {
newValue = parseInt(`${prevValue}`) + 1;
client.set(slug, newValue);
} else {
client.set(slug, 1);
}
return newValue;
}
return 0;
};