Skip to content

Commit

Permalink
new created_at field on short url database
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodriguespn committed Jan 16, 2024
1 parent 3ef10a6 commit 942af34
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/firebase/firestore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const storeUrl = async (url: string) => {
try {
const shortUrlDoc = await addDoc(collection(db, "shortenedUrls"), {
originalUrl: url,
created_at: new Date(),
});
key = shortUrlDoc.id;
} catch (e) {
Expand Down

0 comments on commit 942af34

Please sign in to comment.