Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if the remote database is newer than the local one (or vice-versa) #81

Open
github-actions bot opened this issue Dec 30, 2023 · 0 comments
Open
Labels

Comments

@github-actions
Copy link

//TODO Check if the remote database is newer than the local one (or vice-versa)

    private readonly IStorageService _storage = storage;
    private readonly IUserService _userService = userService;

    private const string itemsPath = "recurrents.json";
    private const string logsPath = "recurrents_logs.json";

    public async Task<(List<Item> items, List<ItemLog> logs)> InitializeDatabaseAsync()
    {
        //TODO Check if the remote database is newer than the local one (or vice-versa)

        return (await LoadDataAsync(), null);
    }



    public async Task<bool> SaveDataAsync(List<Item> data)
    {
        var stringData = JsonSerializer.Serialize(data);
@github-actions github-actions bot added the todo label Dec 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants