Skip to content

Commit

Permalink
fix: correcting some errors
Browse files Browse the repository at this point in the history
  • Loading branch information
GustaaSZ committed Sep 10, 2024
1 parent 6ba0c20 commit 01259a7
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/app/__tests__/cardRotina.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const rotina = {
dataHoraConcluidos: [],
dataHora: new Date(),
dias: [EDiasSemana.Domingo],
notificacao: true,
};

const rotina_exercicios = {
Expand All @@ -31,6 +32,7 @@ const rotina_exercicios = {
dataHoraConcluidos: [],
dataHora: new Date(),
dias: [EDiasSemana.Domingo],
notificacao: true,
};

const rotina_medicamentos = {
Expand All @@ -42,6 +44,7 @@ const rotina_medicamentos = {
dataHoraConcluidos: [],
dataHora: new Date(),
dias: [EDiasSemana.Domingo],
notificacao: true,
};

describe("Teste Componente Card Rotina", () => {
Expand Down
2 changes: 1 addition & 1 deletion src/app/db/migrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default schemaMigrations({
{ name: 'dataHora', type: 'number' },
{ name: 'descricao', type: 'string' },
{ name: 'token', type: 'string' },
{ name: 'notificao', type: 'boolean' },
{ name: 'notificacao', type: 'boolean' },
{ name: 'dataHoraConcluidos', type: 'string' },
{ name: 'idoso_id', type: 'string', isIndexed: true },
{ name: 'created_at', type: 'number' },
Expand Down
2 changes: 1 addition & 1 deletion src/app/db/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default appSchema({
{ name: 'dataHora', type: 'number' },
{ name: 'descricao', type: 'string' },
{ name: 'token', type: 'string' },
{ name: 'notificao', type: 'boolean' },
{ name: 'notificacao', type: 'boolean' },
{ name: 'dataHoraConcluidos', type: 'string' },
{ name: 'idoso_id', type: 'string', isIndexed: true },
{ name: 'created_at', type: 'number' },
Expand Down
2 changes: 1 addition & 1 deletion src/app/model/Rotina.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default class Rotina extends Model {

@field('token') token!: string;

@field('notificao') notificao!: boolean;
@field('notificacao') notificacao!: boolean;

@field('dataHoraConcluidos') dataHoraConcluidos!: string;

Expand Down
2 changes: 1 addition & 1 deletion src/app/private/pages/cadastrarRotina.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export default function CadastrarRotina() {
rotina.dias = dias.join(';');
rotina.dataHora = Date.parse(getDateIsoString());
rotina.token = token;
rotina.notificao = notificacao;
rotina.notificacao = notificacao;
rotina.dataHoraConcluidos = "";
rotina.idoso_id = String(idoso?.id);
});
Expand Down
2 changes: 1 addition & 1 deletion src/app/private/pages/editarPerfil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import UploadImage from "../../components/UploadImage";
import ModalConfirmation from "../../components/ModalConfirmation";
import BackButton from "../../components/BackButton";
import database from "../../db";
import User from "../../model/User";
import User from "../../model/Usuario";
import { Q } from "@nozbe/watermelondb";
import { IUser } from "../../interfaces/user.interface";
import Usuario from "../../model/Usuario";
Expand Down

0 comments on commit 01259a7

Please sign in to comment.