diff --git a/.eslintignore b/.eslintignore
index 917d991..c9c8fb2 100644
--- a/.eslintignore
+++ b/.eslintignore
@@ -11,4 +11,4 @@ node_modules
pnpm-lock.yaml
package-lock.json
yarn.lock
-backend
\ No newline at end of file
+/backend
\ No newline at end of file
diff --git a/.prettierignore b/.prettierignore
index ed08872..d90086a 100644
--- a/.prettierignore
+++ b/.prettierignore
@@ -2,4 +2,4 @@
pnpm-lock.yaml
package-lock.json
yarn.lock
-backend
\ No newline at end of file
+/backend
\ No newline at end of file
diff --git a/backend/pb_migrations/1706833675_updated_users.js b/backend/pb_migrations/1706833675_updated_users.js
deleted file mode 100644
index 17dd6b3..0000000
--- a/backend/pb_migrations/1706833675_updated_users.js
+++ /dev/null
@@ -1,33 +0,0 @@
-///
-migrate((db) => {
- const dao = new Dao(db)
- const collection = dao.findCollectionByNameOrId("_pb_users_auth_")
-
- // add
- collection.schema.addField(new SchemaField({
- "system": false,
- "id": "rncq13xn",
- "name": "appearance_mode",
- "type": "select",
- "required": false,
- "presentable": false,
- "unique": false,
- "options": {
- "maxSelect": 1,
- "values": [
- "light",
- "dark"
- ]
- }
- }))
-
- return dao.saveCollection(collection)
-}, (db) => {
- const dao = new Dao(db)
- const collection = dao.findCollectionByNameOrId("_pb_users_auth_")
-
- // remove
- collection.schema.removeField("rncq13xn")
-
- return dao.saveCollection(collection)
-})
diff --git a/backend/pb_migrations/1706834435_updated_users.js b/backend/pb_migrations/1706834435_updated_users.js
deleted file mode 100644
index f6eb82e..0000000
--- a/backend/pb_migrations/1706834435_updated_users.js
+++ /dev/null
@@ -1,49 +0,0 @@
-///
-migrate((db) => {
- const dao = new Dao(db)
- const collection = dao.findCollectionByNameOrId("_pb_users_auth_")
-
- // update
- collection.schema.addField(new SchemaField({
- "system": false,
- "id": "rncq13xn",
- "name": "appearance_mode",
- "type": "select",
- "required": false,
- "presentable": false,
- "unique": false,
- "options": {
- "maxSelect": 1,
- "values": [
- "light",
- "dark",
- "system"
- ]
- }
- }))
-
- return dao.saveCollection(collection)
-}, (db) => {
- const dao = new Dao(db)
- const collection = dao.findCollectionByNameOrId("_pb_users_auth_")
-
- // update
- collection.schema.addField(new SchemaField({
- "system": false,
- "id": "rncq13xn",
- "name": "appearance_mode",
- "type": "select",
- "required": false,
- "presentable": false,
- "unique": false,
- "options": {
- "maxSelect": 1,
- "values": [
- "light",
- "dark"
- ]
- }
- }))
-
- return dao.saveCollection(collection)
-})
diff --git a/backend/pb_migrations/1707253263_updated_users.js b/backend/pb_migrations/1707253263_updated_users.js
index feced8f..2edf955 100644
--- a/backend/pb_migrations/1707253263_updated_users.js
+++ b/backend/pb_migrations/1707253263_updated_users.js
@@ -1,50 +1,35 @@
///
-migrate((db) => {
- const dao = new Dao(db)
- const collection = dao.findCollectionByNameOrId("_pb_users_auth_")
+migrate(
+ (db) => {
+ const dao = new Dao(db);
+ const collection = dao.findCollectionByNameOrId('_pb_users_auth_');
- // update
- collection.schema.addField(new SchemaField({
- "system": false,
- "id": "rncq13xn",
- "name": "appearanceMode",
- "type": "select",
- "required": false,
- "presentable": false,
- "unique": false,
- "options": {
- "maxSelect": 1,
- "values": [
- "light",
- "dark",
- "system"
- ]
- }
- }))
+ // update
+ collection.schema.addField(
+ new SchemaField({
+ system: false,
+ id: 'rncq13xn',
+ name: 'appearanceMode',
+ type: 'select',
+ required: false,
+ presentable: false,
+ unique: false,
+ options: {
+ maxSelect: 1,
+ values: ['light', 'dark', 'system']
+ }
+ })
+ );
- return dao.saveCollection(collection)
-}, (db) => {
- const dao = new Dao(db)
- const collection = dao.findCollectionByNameOrId("_pb_users_auth_")
+ return dao.saveCollection(collection);
+ },
+ (db) => {
+ const dao = new Dao(db);
+ const collection = dao.findCollectionByNameOrId('_pb_users_auth_');
- // update
- collection.schema.addField(new SchemaField({
- "system": false,
- "id": "rncq13xn",
- "name": "appearance_mode",
- "type": "select",
- "required": false,
- "presentable": false,
- "unique": false,
- "options": {
- "maxSelect": 1,
- "values": [
- "light",
- "dark",
- "system"
- ]
- }
- }))
+ // remove
+ collection.schema.removeField('rncq13xn');
- return dao.saveCollection(collection)
-})
+ return dao.saveCollection(collection);
+ }
+);