Skip to content

Commit 37eb38d

Browse files
committed
fix(examples/to-do-app): create 'Work' and 'Personal' tags without randomUUID
1 parent acff889 commit 37eb38d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/to-do-app/hooks/useCategories.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ const useCategories = () => {
6969
await db.execute(`SELECT cloudsync_init('tags');`);
7070
await db.execute(`SELECT cloudsync_init('tasks_tags');`);
7171

72-
await db.execute('INSERT OR IGNORE INTO tags (uuid, name) VALUES (?, ?)', [randomUUID(), 'Work'])
73-
await db.execute('INSERT OR IGNORE INTO tags (uuid, name) VALUES (?, ?)', [randomUUID(), 'Personal'])
72+
await db.execute('INSERT OR IGNORE INTO tags (uuid, name) VALUES (?, ?)', ['work', 'Work'])
73+
await db.execute('INSERT OR IGNORE INTO tags (uuid, name) VALUES (?, ?)', ['personal', 'Personal'])
7474

7575
if ((ANDROID_CONNECTION_STRING || CONNECTION_STRING) && API_TOKEN) {
7676
await db.execute(`SELECT cloudsync_network_init('${Platform.OS == 'android' && ANDROID_CONNECTION_STRING ? ANDROID_CONNECTION_STRING : CONNECTION_STRING}');`);

examples/to-do-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sqliteai/todoapp",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "An Expo template for building apps with the SQLite CloudSync extension",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)